for loop does not work with open code example Example: for loop does not work with open for i in open("toetslog.txt", 'r'): print(i)