Conversion
Write a program that numerals asHoursReceive and make it toDay and hourTurn
For example:
Write a program that numerals asHoursReceive and make it toDay and hourTurn
For example:
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
hours=int(input("enter the count of hours>>>>>"))
D=int(hours/24)
H=int(hours%24)
print(D , "days" , "&" , H , "hours")
import time hou=int(input('hours: ')) d=hou/24 d=int(d) h=hou%24 print(d,'days ',h,'hours') s=input('khoroog')
def convert_hours_to_days_and_hours(hours):
days = hours // 24
remaining_hours = hours % 24
return f"{days} days, {remaining_hours} hours"
input_hours = 80
result = convert_hours_to_days_and_hours(input_hours)
print(result)
while True: hour = int(input("Exit press -1 to Continue Entre your number :")) if hour < 0 : break d = 24 day = hour // d h = hour % d print(f"day: {day}") print(f"hour:{h}") print("Program Exit")
hur=int(input("hur:")) d=(int(hur/24)) h=hur%24 print('d {} , h {}'.format(d , h))
This is the easiest way possible
hour = int(input("چند ساعت : "))
a = hour // 24
b = hour % 24
print('day',a)
print('hour',b)
number = int(input("please enter a number(hour): ")) day = number // 24 saat = number % 24 print(f"{number} hours = {day} day and {saat} hours")
Submitting answers is currently unavailable.
You must be logged in to access this section.
Login/Sign up If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.