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)

11th Mar 2017, 8:54 PM
John Mark Stols
John Mark Stols - avatar
4 Antworten
+ 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
11th Mar 2017, 11:08 PM
William La Flamme
William La Flamme - avatar
0
well for one, which language because only a few use # for comments so that matters
11th Mar 2017, 9:09 PM
William La Flamme
William La Flamme - avatar
0
Language is phython
11th Mar 2017, 9:10 PM
John Mark Stols
John Mark Stols - avatar
0
Hi William, im a total beginner. i would like to learn how to create user inputs. Thanks for the info.
12th Mar 2017, 9:58 AM
John Mark Stols
John Mark Stols - avatar