Aug-02-2017, 08:08 AM
Im new to programming in general and am playing with the water. I seem to have hit a syntax error that I just cannot figure out why.
else:
^
SyntaxError: invalid syntax
Also what is the best way to go about going back to line 3 after the else command, couldnt test it out cause I couldnt get passed it!
Any help is appreciated!
person = input('Enter your name: ') print('Hello', person) ask = input('What would you like me to do for you today') if ask : "Tell me a joke" print('Caroline has a small nostril') else:According to the ide(pycharm) the error message looks like this according to line 6:
else:
^
SyntaxError: invalid syntax
Also what is the best way to go about going back to line 3 after the else command, couldnt test it out cause I couldnt get passed it!
Any help is appreciated!