Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Simple if/else expressions (2/2) | Conditional statements
Learn Python from Scratch
course content

Kursinnehåll

Learn Python from Scratch

Learn Python from Scratch

1. The basics
2. Arithmetic operations
3. Common data types
4. Conditional statements
5. Other data types
6. Loops
7. Functions

book
Simple if/else expressions (2/2)

Let's do one more task to practice!

Uppgift

Swipe to start coding

Using if/else statements check if the number within variable num is even or odd.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 4. Kapitel 4
toggle bottom row

book
Simple if/else expressions (2/2)

Let's do one more task to practice!

Uppgift

Swipe to start coding

Using if/else statements check if the number within variable num is even or odd.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 4. Kapitel 4
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Vi beklagar att något gick fel. Vad hände?
some-alt