Learning Python

Xavier Morel xavier.morel at masklinn.net
Sun Feb 5 12:20:43 EST 2006


Byte wrote:
> http://docs.python.org/tut/node6.html#SECTION006100000000000000000
> 
-->
 >>> x = int(raw_input("Please enter an integer: "))
<--

Unless my eyes fail me, it's written "int", not "input", the goal of 
this line is to convert the return value of raw_input (a string) into an 
integer.



More information about the Python-list mailing list