LearnPy Hub
← Inheritance & Special Methods problems
Easy

A Child Gets the Method

class Animal has breathe() returning NAME is breathing. class Fish(Animal) adds nothing (pass). Read a name, make a Fish and print breathe().

Input

One line.

Output

One line.

Sample 1

Input
Nemo
Output
Nemo is breathing

Sample 2

Input
Goldie
Output
Goldie is breathing
solution.py
Output appears here
A Child Gets the Method · Python practice problem · LearnPy Hub