Is there any way of getting string input from user, other than raw-input, as that generates an error in my python program?
choice = raw_input("Do you want to convert from celcius to farenheit?")
NameError: name 'raw_input' is not defined
Is there any way of getting string input from user, other than raw-input, as that generates an error in my python program?
choice = raw_input("Do you want to convert from celcius to farenheit?")
NameError: name 'raw_input' is not defined
raw_input
is not working because you are using Python 3. If you want raw_input, try downgrading to use Python 2 instead.
Alternatively, if you must use Python 3, you can use the function input
like so:
name = input("Enter your name: ")