[Tutor] raw_input (original) (raw)
Bill Mill bill.mill at gmail.com
Sat Jul 10 03:33:12 CEST 2004
- Previous message: [Tutor] raw_input
- Next message: [Tutor] raw_input
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 9 Jul 2004 20:13:24 -0400, Hee-Seng Kye <kyeser at earthlink.net> wrote:
I did this by doing: temp = rawinput("Enter temerature: ") conv = rawinput("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
- Previous message: [Tutor] raw_input
- Next message: [Tutor] raw_input
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]