with concept in files in python
# Number one method to open a file
with open ("23_writing_file.txt") as f:
print(f.readlines(40))
# Second number method to open a file
f = open("23_writing_file.txt")
print(f.read(23))
# Number one method to open a file
Comments
Post a Comment