How to take a user input of 24 hour time in HHMM format? (without importing any modules)
Advertisements I need to accept a user input for time, between 0000 and 2359, without importing any modules. I currently have it just taking an int input: fillTime = "X" while fillTime == "X": try: fillTime = int(input("Enter the time (0000-2359): ")) if fillTime < 0 or fillTime > 2359: print("Error! Please enter a valid… Read More How to take a user input of 24 hour time in HHMM format? (without importing any modules)