LearnPy Hub
← Inheritance & Special Methods problems
Easy

Attribute From the Parent

class Account sets self.bank = 'LearnPy Bank' and an owner. class Savings(Account) calls super().__init__(owner) and sets a rate. Read an owner and a rate and print OWNER at LearnPy Bank: RATE%.

Input

Two lines.

Output

One line.

Sample 1

Input
Mim
5
Output
Mim at LearnPy Bank: 5%

Sample 2

Input
Rafi
7.5
Output
Rafi at LearnPy Bank: 7.5%
solution.py
Output appears here
Attribute From the Parent · Python practice problem · LearnPy Hub