logo image

Python program to convert days to hours


Following program shows you how to convert days to hours. In this program we get days from user, once we get those we need to multiply with 24 so that we get in hours

days = int(input("Please enter days:"))
hours = days * 24
print(hours, " Hours")


Please enter days: 5
120.0  Hours