Advertisement
Guest User

Untitled

a guest
May 15th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. with open("myfile.txt") as search:
  2. for line in search:
  3. line = line.rstrip() # remove '\n' at end of line
  4. if largestInt == line:
  5. with open("index.txt", "a") as myfile:
  6. myfile.write("text appended")
  7.  
  8. TabError: inconsistent use of tabs and spaces in indentation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement