Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Syntax of if Statement | Python if Statement
TEST FREE COURSE
course content

Course Content

TEST FREE COURSE

bookSyntax of if Statement

Task
test

Swipe to show code editor

Let's play the game. Guess the number between 1 and 10.

  1. You have to implement if statement which will check that the number is equal to the number that I thought of;
  2. If this condition is True you have to display the next text: Right, You guessed my number! I have in my mind number ....

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 1. Chapter 2
toggle bottom row

bookSyntax of if Statement

Task
test

Swipe to show code editor

Let's play the game. Guess the number between 1 and 10.

  1. You have to implement if statement which will check that the number is equal to the number that I thought of;
  2. If this condition is True you have to display the next text: Right, You guessed my number! I have in my mind number ....

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 1. Chapter 2
toggle bottom row

bookSyntax of if Statement

Task
test

Swipe to show code editor

Let's play the game. Guess the number between 1 and 10.

  1. You have to implement if statement which will check that the number is equal to the number that I thought of;
  2. If this condition is True you have to display the next text: Right, You guessed my number! I have in my mind number ....

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!

Task
test

Swipe to show code editor

Let's play the game. Guess the number between 1 and 10.

  1. You have to implement if statement which will check that the number is equal to the number that I thought of;
  2. If this condition is True you have to display the next text: Right, You guessed my number! I have in my mind number ....

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 1. Chapter 2
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt