[Tutor] raw_input

Bill Mill bill.mill at gmail.com
Sat Jul 10 03:33:12 CEST 2004


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