[ create a new paste ] login | about

Link: http://codepad.org/kOJv83zw    [ raw code | output | fork ]

Python, pasted on May 24:
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)


Output:
1
2
3
4
5
Enter hours:
Traceback (most recent call last):
  Line 1, in <module>
    hours = int(input('Enter hours:\n'))
EOFError


Create a new paste based on this one


Comments: