Learn practical skills, build real-world projects, and advance your career

python-exam

Use the "Run" button to execute the code.

!pip install jovian --upgrade --quiet
import jovian
# Execute this to save new versions of the notebook
jovian.commit(project="python-exam")
#convert given hours and minutes in second
h=int(input("Enter hours:"))
m=int(input("Enter minutes"))
sec=(h*3600)+(m*60)
print("given",h,"hours and",m,"minutes are converted into",sec,"seconds")
Enter hours:1 Enter minutes30 given 1 hours and 30 minutes are converted into 5400 seconds