any Python programmer is here plzz help me ?????
Attachments:
Anonymous:
___k off
Answers
Answered by
2
10.
if answer == "kilograms":
return amount * 2.2
elif answer == "pounds":
return amount / 1.45
else:
print "Please choose between kilograms and pounds."
restart = raw_input("Try again? ")
if restart == "yes":
conversion()
return 0
elif restart == "y":
conversion()
return 0
Attachments:
Answered by
3
11th qus
time1 = int(input("Please enter the first time: "))
time2 = int(input("Please enter the second time: "))
if time2 < time1 :
time2 = time2 + 2360
difference = time2 - time1
hours = difference // 100
minutes = difference % 100
hours = hours + minutes // 60
minutes = minutes % 60
print(hours, "hours", minutes, "minutes")
Similar questions