LearnPy Hub
← Classes & Objects problems
Easy

Print the Attributes

Write class Phone with brand and price attributes set in __init__. Read both and print p.brand and p.price on two lines.

Input

Two lines: brand, price.

Output

Two lines.

Sample 1

Input
Nokia
5000
Output
Nokia
5000

Sample 2

Input
Samsung
25000
Output
Samsung
25000
solution.py
Output appears here
Print the Attributes · Python practice problem · LearnPy Hub