Hi All
I am new to python. I am doing this tutorial on nested conditions coding however I am stuck. I appreciate some help with it.

I am new to python. I am doing this tutorial on nested conditions coding however I am stuck. I appreciate some help with it.
if already_fed: print('Already fed!') else: if animal == 'Lion': print('Meat') elif animal == 'Zebra': print('Grass') else: print('Water')I want to set already_fed to False and animal to 'Warthog' so that "Water" is printed to the terminal. i always ended with result as already fed.
Larz60+ write Jul-27-2021, 03:11 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use bbcode tags on future posts.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use bbcode tags on future posts.