+ 1
Need help!!
Please help! Check code for details: https://code.sololearn.com/cUs0207tTzFd/?ref=app
2 Respostas
+ 1
You are getting errors because
1) You didn’t indent the second if statement in the function
2) The second if statement doesn’t have any code so put the pass keyword inside it
def mood():
if emoji == "1":
...
if emoji == "2":
pass
Because emoji is a global variable you should do
global emoji
at the start of the function so it can be accessed inside the function
+ 1
TurtleShell, thank you!