LearnPy Hub
← Classes & Objects problems
Easy

A Shared Class Attribute

Write class Bangladeshi with a class attribute country = 'Bangladesh' and a name per object. Read a name and print NAME lives in Bangladesh using both attributes.

Input

One line.

Output

One line.

Sample 1

Input
Mim
Output
Mim lives in Bangladesh

Sample 2

Input
Rafi
Output
Rafi lives in Bangladesh
solution.py
Output appears here
A Shared Class Attribute · Python practice problem · LearnPy Hub