LearnPy Hub
← Inheritance & Special Methods problems
Easy

Three Generations

A has hello() returning hello from A. B(A) adds nothing, and C(B) adds nothing. Read the input word and print it followed by C().hello().

Input

One word.

Output

One line.

Sample 1

Input
Result:
Output
Result: hello from A

Sample 2

Input
C
Output
C hello from A
solution.py
Output appears here
Three Generations · Python practice problem · LearnPy Hub