Prevent writing an infinite loop
Prevent writing an infinite loop Question: This code takes user input and stores it into a file ,and then it saves the time the user visited in another separate file. import date time Today = date time.date time.now() name = input(‘Whats your name :’) filename = ‘guests’ with open (filename, ‘a’) as file_object: file_object.write(name +’.n’) …