Newbie questions

jim roush jar at mminternet.com
Tue Jun 13 00:10:35 EDT 2000


I'm just learning Python.  The following code does not work.  It's
supposed to calculate the circumference after the user enters the
radius.  The program displays the prompt, but when I enter the radius
and the press enter, nothing happens.

FYI, I'm using Python 1.5.2 on WinNT.

pi = 3.141592654
radius = input("Enter is the radius: ")
circ = 2 * pi * radius
print circ


jar at mminternet.com
James A Roush



More information about the Python-list mailing list