Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn If-Else Statements Practice. Clear the Storage | If-Else Statements
Python Knight

bookIf-Else Statements Practice. Clear the Storage

Your task is to help our knight clear out all the coins from a cluttered storage room. The storage room is a grid filled with coin pieces scattered around, and it's your job to collect them all.

Task

Swipe to start coding

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 5. ChapterΒ 3
knight.py

knight.py

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

What are the rules for moving the knight in the storage room?

Can you describe the layout of the storage room grid?

How does the knight collect the coins?

close

Awesome!

Completion rate improved to 2.94

bookIf-Else Statements Practice. Clear the Storage

Swipe to show menu

Your task is to help our knight clear out all the coins from a cluttered storage room. The storage room is a grid filled with coin pieces scattered around, and it's your job to collect them all.

Task

Swipe to start coding

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

close

Awesome!

Completion rate improved to 2.94
SectionΒ 5. ChapterΒ 3
knight.py

knight.py

some-alt