Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge 2 | If...Else Statement
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python Tutorial for Beginners

bookChallenge 2

Task

Swipe to start coding

Code the next two lines. If the test fails, test if a equals 15. If so, display "a equals 15".

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 4. ChapterΒ 5
single

single

Ask AI

expand

Ask AI

ChatGPT

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

Suggested prompts:

Summarize this chapter

Explain the code in file

Explain why file doesn't solve the task

close

bookChallenge 2

Swipe to show menu

Task

Swipe to start coding

Code the next two lines. If the test fails, test if a equals 15. If so, display "a equals 15".

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

single

some-alt