Мой профиль
ACTIVITY 40 / 50

Build from the blueprint

Try as many times as you need

Let’s understand

Calling a class creates an instance: a separate object. bot = Robot() creates one robot. Use a dot to read and write its data: bot.name. Different objects can hold different values.

Listen to the explanation

Example

class Box:
    pass

b = Box()
b.color = "blue"
print(b.color)
YOUR MISSION

Create bot from Robot. Set bot.name to Veda and print it.

I need a hint

Robot() creates the object; bot.name stores its name.

How to find an error
  1. Read the last line of the error message.
  2. Find the indicated line. Check quotes, parentheses and indentation.
  3. Change one thing and run again.

main.py

4 spaces

Your draft stays in this browser.

Result

Python
Your program’s output will appear here. Click Run.