LearnPy Hub
← Classes & Objects problems
Easy

Say Your Own Name

Write class Robot with a name and a method hello() that prints Beep! I am NAME. Read two names, make two robots and call hello() on each.

Input

Two lines.

Output

Two lines.

Sample 1

Input
R2
C3
Output
Beep! I am R2
Beep! I am C3

Sample 2

Input
Alpha
Beta
Output
Beep! I am Alpha
Beep! I am Beta
solution.py
Output appears here
Say Your Own Name · Python practice problem · LearnPy Hub