I’m just starting to learn Python today and I typed up a basic script (It doesn’t completely work). Here it is.
name = input('Hi! What is your name?\n') print('Hi, %s.' % name) mood = input('How are you doing today?\n') def mood(n): if n == 'Good': return print ('Good to hear that') if n == 'Bad': return print ('Sorry to hear that')
Anyways, the second question in it (How are you doing today?) doesn’t respond and I don’t understand why. Can someone help explain to me why it didn’t work rather than just give a revised version of the script?
Here’s the script ran step by step: