We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43763fb commit 321be6bCopy full SHA for 321be6b
C05/co5_p1.py
@@ -11,11 +11,22 @@
11
12
fo =open("demo2.txt","w")
13
14
-fo.write("Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms")
+fo.write("Python is dynamically-typed and garbage-collected \n. It supports multiple programming paradigms")
15
fo.close()
16
17
+""" #replace data in file
18
f2 =open("demo2.txt","w")
19
f2.write("Python gdgg")
20
f2.close()
21
+"""
22
+
23
+fn1 =open("demo2.txt","r")
24
+s1 =fn1.readline()# read multiple line
25
+s2 =fn1.readline()
26
27
+print(s1)
28
+print(s2)
29
+fn1.close()
30
31
32
C05/demo2.txt
@@ -1 +1,2 @@
1
-Python gdgg
+Python is dynamically-typed and garbage-collected
2
+. It supports multiple programming paradigms
0 commit comments