how to read input?

Alex alex at somewhere.round.here
Tue Mar 21 17:22:01 CET 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