Start på Pass 3

This commit is contained in:
2018-03-15 14:58:33 +01:00
parent 42ce66032e
commit df779ae6f7
13 changed files with 155 additions and 0 deletions

14
Pass 3/files.py Executable file
View File

@@ -0,0 +1,14 @@
file = open("log.txt","w")
file.write("Hej världen!!\n")
file.write("Lite mer text")
file.close()
file = open("log.txt","r")
print(file.read())
#with open("log.txt") as file:
#data = file.read()
#do something with data