Using a online source to get a quick review of python from beginners perspective.
http://oopweb.com/Python/Documents/easytut/VolumeFrames.html
just trying to run the following script:
#This programs calculates rate and distance problems
print "Input a rate and a distance"
rate = input("Rate:")
distance = input("Distance:")
print "Time:"
distance/rate
I expect this to happen:
Input a rate and a distance
Rate:5
Distance:10
Time: 2
Instead I get this
Input a rate and a distance
Rate:5
Distance:10
Time:
Why am I not getting a value for time when i run the script?
http://oopweb.com/Python/Documents/easytut/VolumeFrames.html
just trying to run the following script:
#This programs calculates rate and distance problems
print "Input a rate and a distance"
rate = input("Rate:")
distance = input("Distance:")
print "Time:"
distance/rate
I expect this to happen:
Input a rate and a distance
Rate:5
Distance:10
Time: 2
Instead I get this
Input a rate and a distance
Rate:5
Distance:10
Time:
Why am I not getting a value for time when i run the script?