1 2 3 4 5 6
hours = int(input('Enter hours:\n')) minutes = int(input('Enter minutes:\n')) minutes_result = hours * 60 + minutes print(hours, 'hours and', minutes, 'minutes is', minutes_result)
1 2 3 4 5
Enter hours: Traceback (most recent call last): Line 1, in <module> hours = int(input('Enter hours:\n')) EOFError