Using input() is fine, since your are asking for an integer as input from the user.
Your code should look like this...
print"simple"
a=input("speed?")
b=input("distance?")
print"it\'ll take",float(b)/float(a)*60," to go that far"
notice on...
I am a novice programmer. I am writing a program and would like to require the user to use passwords to access some areas of the program, how do I create a "Login / Password" box?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.