#Michael Smith #Jan=1 Feb=2 Mar=3 April=4 May=5 June=6 July=7 Aug=8 Sept=9 Oct=10 Nov=11 Dec=12 currentyear=float(raw_input( " What is the current year? " )) print ("") birthyear=float(raw_input( " What year were you born? " )) print ("") age=(currentyear-birthyear) #month=float(raw_input( " How many days are in this month? " )) #print ("") #day=float(raw_input( "How many hours are in a day?" )) #print ("") #hour=float(raw_input( "How many minutes are in a hour" )) #print ("") #currentminute=float(raw_input( "How many seconds are in a minute?")) #print ("") #seconds=1 #secondsold=(birthyear) + (age) + (month*(" What is the current month?")) + (day) + #print("") #print secondsold ("You are") + (secondsold) + ("years old.") secondsold=60*60*24*age print secondsold
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question