1

What is wrong with this code? It gives me this error:

"Unhandled Exception: name 'raw_input' is not defined"

I don't know where I am going wrong:

def say_hello(nam): 
    nam = raw_input("What is your name? ") 
    if nam != "": 
        return("Hello," + nam + "!" ) 
    else: 
        return("Hello there!")
Peter Featherstone
  • 7,835
  • 4
  • 32
  • 64
Alex Mochu
  • 21
  • 4

0 Answers0