[Tutor] reading strings
ankban4@indya.com
ankban4@indya.com
Sun, 10 Sep 2000 14:53:26 +0530
Hi,
I am new to python (1 day).I have downloaded the python for
windows platform ver 1.5. Well i was tinkering around with it for
some time reading the tutorial that came along with it . Well , i
couldnt figure out 1 thing . How do i input strings in python?
In other words what is the python equivalent of the followig piece of
code :-
print "Whats your name?";#perl code
$name=<STDIN>;
chomp($name);
****************************************
print "Whats your name?"; /* C code */
gets(name);/* name[10] defined earlier */
i tried with input but with no success.
Thanks for answering a newbie question.
ankur
Enter your default signature here
Sent by Indya Messaging Service