Jul-02-2020, 01:31 PM
(This post was last modified: Jul-02-2020, 01:31 PM by pyzyx3qwerty.)
In your second piece of code, there are three errors -
You can use this :
- No
:
at the end of line 1
- On line 2, you seem to have forgotten an 'l' - it should be
if x=='furball':
- On line 3,
print
shouldn't be having a capital p
You can use this :
def Cat(x): if x=='furball': addition = 'Grumpy' return addition print('Our latest addition:',Cat('furball'))
pyzyx3qwerty
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs