Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open("myfile.txt") as search:
- for line in search:
- line = line.rstrip() # remove '\n' at end of line
- if largestInt == line:
- with open("index.txt", "a") as myfile:
- myfile.write("text appended")
- TabError: inconsistent use of tabs and spaces in indentation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement