← Back to Exercises
🏗️

Classes & Objects • Exercise 109 of 112

Robot Says Hello

Easy⭐ 25 XP🏆 Your XP: 0

🎯 Your Mission

Create a class Robot with a name attribute and a method greet() that prints "Beep boop! I am" followed by the name. Make a robot named Robo and call greet().

🐍 main.pyTab = 4 spaces • Ctrl+Enter = Run
▶ Output
Press ▶ Run to see what your code does!