Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

WAP THAT ASKS A USER FOR A NUMBER OF YEARS AND THEN PRINTS OUT THE NUMBER OF DAYS, HOURS ,MINUTES AND SECONDS IN THAT NO. OF YEARS.

y = float(input("How many years? "))

d = y * 365
h = d * 24
m = h * 60
s = m * 60

print(y, "years is:")
print(d, "days")
print(h, "hours")
print(m, "minutes")
print(s, "seconds")
Comment

PREVIOUS NEXT
Code Example
Python :: go to line in jetbrain 
Python :: python class udp 
Python :: Python Split list into chunks using lambda Method 
Python :: split dataframe into multiple parts 
Python :: chrome drivers documentation 
Python :: List Get a Element-2 
Python :: japanese translator google 
Python :: print current date and time in python 
Python :: art library in python spyder 
Python :: save lines from a file 
Python :: python modules screen 
Python :: how to get device hwid cmd 
Python :: PHP echo multiple lines example Using Heredoc 
Python :: python use string to get object attributes 
Python :: Python - Comment préparer la capitalisation 
Python :: dice rolling app in python 
Python :: rendere eseguibile python 
Python :: send command civil3D 
Python :: Free the Bunny Prisoners 
Python :: numpy.where() for substring 
Python :: python youtube view bot 
Python :: pyglet on close 
Python :: background subtraction params opencv python 
Python :: get false positives from confusoin matrix 
Python :: timeplanner-1 
Python :: python file is writable 
Python :: Cget subassembly civid3d 
Python :: python remove middle of string 
Python :: reload module 
Python :: max sum slice python 1 - autopilot 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =