Inheritance/Single: Difference between revisions

No edit summary
Line 1,877:
buddy = Labrador()
buddy.kill()
print (f"Felix has", {felix.lives,} "lives, ","Buddy is %salive!"%(""{'not' if buddy.alive else "'not'} alive!")</syntaxhighlight>
</syntaxhighlight>
{{out}}
<pre>