Prevent writing an infinite loop
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’) while name: print(‘Welcome,how are you doing… Read More Prevent writing an infinite loop