new learner - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: new learner (/thread-29730.html) |
new learner - Rezvaneh - Sep-17-2020 hi all I am new learner in python. I could not find my error root cause , can you help me : mood = 'tired' if mood == 'tired': hit_snooze_button = True print('rezi is tired so hits the snooze button') elif mood == 'well': getout_of_bed = True print('rezi is well rested and she is already out of bed')File "<ipython-input-34-05d3cd1bbc5a>", line 5 elif mood == 'well': ^ SyntaxError: invalid syntax RE: new learner - buran - Sep-17-2020 mood = 'tired' if mood == 'tired': hit_snooze_button = True print('rezi is tired so hits the snooze button') elif mood == 'well': getout_of_bed = True print('rezi is well rested and she is already out of bed') |