Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- deleted = 0
- with open('C:/Users/Nathan/PycharmProjects/untitled/Wiki Input.txt', 'r') as fileNew:
- fileContents = fileNew.read().splitlines()
- fileNew.close()
- for i in range(0,len(fileContents)):
- if "--" in fileContents[i]:
- deleted += 1
- print(str(round((100.0 / float(len(fileContents))) * deleted)) + "% complete")
- input("Press enter to quit")
Advertisement
Add Comment
Please, Sign In to add comment