i need to write a code in python that asks for a number of days and then show the hours, minutes and seconds are in the number of days. If you could help it would be greatly appreciated
1
Expert's answer
2015-10-08T02:40:58-0400
# Python 3.4.x
print("Input number of days: ", end="") days = int(input()) print("There are", days * 24, "hours,", days * 1440, "minutes,", days * 86400, "seconds.")
# Python 2.7.x
from __future__ import print_function
print("Input number of days: ", end="") days = int(raw_input()) print("There are", days * 24, "hours,", days * 1440, "minutes,", days * 86400, "seconds.")
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments