[Tutor] help

Dipo Elegbede delegbede at dudupay.com
Thu Feb 24 10:03:33 CET 2011


That line only expects int and say numbers generally.
If you want to print strings, use, raw_input in place of input.
Try that out and then let's have a feedback.
Sent from my BlackBerry wireless device from MTN

On Thu, Feb 24, 2011 at 9:53 AM, Nitin Pawar <nitinpawar432 at gmail.com>wrote:

> instead of input ... use raw_input()
>
> On Thu, Feb 24, 2011 at 9:45 AM, Chris Schiro <cschiro.gc at gmail.com>wrote:
>
>>  Hi,
>>
>> I am completely new to programming aside from working with basic many
>> years ago. I purchased a Python book for beginners so I could start from
>> scratch which has been walking me through just fine until: writing a program
>> to interact with user for feedback:
>>
>>
>>
>> name=input(“What is your name? “)
>>
>>
>>
>> I have found that this line will return an error every time while running
>> the completed program, unless I enter a number. If I enter a numeric value
>> the program will continue on as written.
>>
>>
>>
>> I have followed the code exactly per the book. What is the proper coding
>> in this scenario?
>>
>>
>>
>> Thank you,
>>
>>
>>
>> Chris
>>
>> _______________________________________________
>> Tutor maillist  -  Tutor at python.org
>> To unsubscribe or change subscription options:
>> http://mail.python.org/mailman/listinfo/tutor
>>
>>
>
>
> --
> Nitin Pawar
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinf<http://mail.python.org/mailman/listinfo/tutor>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110224/8936bb94/attachment.html>


More information about the Tutor mailing list