0
Phython. Please help to create input for first four data #uphilldistance #dwnhilldistance # downhilltime #uphilltime 1234
# calc the average speed # how do i create a input ? uphilldist= 745 #km #1 downhilldist= 745 #km #2 downhilltime= 7 #hours #3 uphilltime= 7 #hours #4 mph1=0.621371 totaldistance=uphilldist+downhilldist totaltime=uphilltime + downhilltime averagespeed =totaldistance / totaltime print (averagespeed) mph=averagespeed*mph1 print (mph)
4 Answers
+ 1
so you mean user input? and is this something to learn for you or is this an applied program ie. something you expect to use because youll want sanity checks in there in that case, which goes beyond the scope of this forum probably
0
well for one, which language because only a few use # for comments so that matters
0
Language is phython
0
Hi William, im a total beginner. i would like to learn how to create user inputs. Thanks for the info.