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

bookIf-Else Statements Practice. Follow the Coin Snake

In this chapter, you'll have the opportunity to practice using if-else statements in the Knight Game. Your task is to collect all the coins on the map by following a path that resembles a snake.

Task

Swipe to start coding

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 5. ChapterΒ 4
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:

Can you explain how the snake path works in the Knight Game?

What are the rules for collecting coins in this chapter?

Can you give an example of using if-else statements in this context?

close

Awesome!

Completion rate improved to 2.94

bookIf-Else Statements Practice. Follow the Coin Snake

Swipe to show menu

In this chapter, you'll have the opportunity to practice using if-else statements in the Knight Game. Your task is to collect all the coins on the map by following a path that resembles a snake.

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!

SectionΒ 5. ChapterΒ 4
knight.py

knight.py

some-alt