LearnPy Hub
← Inheritance & Special Methods problems
Easy

Extending a Method

Person has greet() returning Hi, I am NAME.. Student(Person) adds a school, and its greet() calls super().greet() and adds I study at SCHOOL.. Read a name and a school and print the student's greeting.

Input

Two lines.

Output

One line.

Sample 1

Input
Mim
Dhaka College
Output
Hi, I am Mim. I study at Dhaka College.

Sample 2

Input
A
B
Output
Hi, I am A. I study at B.
solution.py
Output appears here
Extending a Method · Python practice problem · LearnPy Hub