We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a84ee9 commit f4f55b5Copy full SHA for f4f55b5
1 file changed
Beispiele/dateien.py
@@ -1,12 +1,12 @@
1
#!/usr/bin/env python3
2
3
-with open("loremipsum.txt", "r") as lorem_ipsum:
4
- text = lorem_ipsum.read()
+lorem_ipsum = open("loremipsum.txt", "r")
+text = lorem_ipsum.read()
5
orig = text
6
text = text.upper()
7
if "U" in text:
8
text = text.replace("U", "V")
9
print(text)
10
print(orig)
11
-with open("loremipsvm.txt", "w") as lorem_ipsvm:
12
- lorem_ipsvm.write(text)
+lorem_ipsvm = open("loremipsvm.txt", "w")
+lorem_ipsvm.write(text)
0 commit comments