Command line input

hexusnexus at gmail.com hexusnexus at gmail.com
Mon Mar 31 21:16:33 EDT 2008


On Mar 31, 4:04 pm, Rick Dooling <rpdool... at gmail.com> wrote:
> On Mar 31, 2:39 pm, hexusne... at gmail.com wrote:
>
> > How do I receive input from the command line in Python?
>
> As long as we are all guessing, do you perhaps mean raw_input?
>
> my_name = raw_input("What is your name? ")
> What is your name? Rick <ENTER>>>> my_name
>
> 'Rick'

Yeah, sorry for being vague.  Thanks.



More information about the Python-list mailing list