how to read input?

Alex alex at somewhere.round.here
Tue Mar 21 11:22:01 EST 2000


> > what is the equivalent python code for the C code:
> > printf("whats yer name");
> > scanf("%s", name)
> > printf("%s", name)
> 
> name = raw_input("whats yer name")
> print name

This is almost as good, but it has a serious flaw in that it doesn't
permit buffer overruns. :)

Alex.



More information about the Python-list mailing list