Skip to content

Latest commit

 

History

History
12 lines (12 loc) · 283 Bytes

README.md

File metadata and controls

12 lines (12 loc) · 283 Bytes

Use Ctrl-H to replace in a text editor
x = open('filename','r') to open files
y = x.read() to store contents of the file into a variable
z = x.readlines() to store different lines into a list
for line in z:
  z.rstrip("\n") to remove newline character