error explanation

Christos TZOTZIOY Georgiou tzot at sil-tec.gr
Mon Sep 29 19:05:02 EDT 2003


On 29 Sep 2003 14:45:44 -0700, rumours say that
malcolm.wood3 at ntlworld.com (Mac Wood) might have written:

>Could someone please explain this error message:
>
>Traceback (most recent call last):
>  File "C:\Python23\time.py", line 1, in -toplevel-
>    time.py
>NameError: name 'time' is not defined
>
>I tried entering the following example:
>
>time.py
>#This programs calculates rate and distance problems
>print "Input a rate and a distance"
>rate = input("Rate:")
>distance = input("Distance:")
>print "Time:",distance/rate

remove the time.py line (it's supposed to name the following lines, not
to be included with them :)
-- 
TZOTZIOY, I speak England very best,
Microsoft Security Alert: the Matrix began as open source.




More information about the Python-list mailing list