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

A robot blueprint

Try as many times as you need

Let’s understand

A class describes a new kind of object. It can combine data and actions. class starts the definition; class names usually start with a capital letter. pass marks a block left empty for now.

Listen to the explanation

Example

class Sensor:
    pass
YOUR MISSION

Create an empty Robot class, then print Blueprint ready.

I need a hint

Put an indented pass after class Robot:.

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.