[Tutor] raw_input

Hee-Seng Kye kyeser at earthlink.net
Sat Jul 10 03:42:01 CEST 2004


Thanks a lot.  You made my day!

Best,

Kye

On Jul 9, 2004, at 9:33 PM, Bill Mill wrote:

> On Fri, 9 Jul 2004 20:13:24 -0400, Hee-Seng Kye <kyeser at earthlink.net> 
> wrote:
>>
>> I did this by doing:
>> temp = raw_input("Enter temerature: ")
>> conv = raw_input("Is this in C or F?: ")
>>
>> How would I be able to enter these two arguments in one line?  Like:
>>
>
> You could try:
>
> temp, conv = raw_input("Enter temperature: ").split()
>
> if you really wanted it on one line, but keep in mind that this is not
> going to be very tolerant of errors at all.
>
> Peace
> Bill Mill
> bill.mill@@gmail...com
>



More information about the Tutor mailing list