Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def displaymenu () :
- print ('1:' 'Convert Hour/s to Minute/s');
- print ('2:' 'Convert Minute/s to Hour/s');
- def run():
- displaymenu ()
- int(input('Enter choice number:'))
- if (choice == 1):
- H2M()
- elif (choice == 2):
- M2H()
- else:
- print ('Invalid Choice: ')
- print ('Bye bye!'), choice;
- def H2M() :
- Hour = int(input('Enter your time in hours.'));
- Minutes = Hour * 60;
- print (Hour, 'Hour -', Minutes, 'Minutes')
- def M2H() :
- Minutes = int(input('Enter your time in Minutes..'));
- Hours = Minutes / 60
- print (Minutes, 'Minutes-', Hours, 'Hours')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement