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

Contenuti del Corso

TEST FREE COURSE

book
Introduction to if Statement

Compito

Swipe to start coding

  1. You have the following string: string = 'codefinity';
  2. Count the length of this string and write the result to the variable len_of_string;
  3. Write if statement that checks for the following condition: if the string length is greater than 7 , print the following text: Codefinity is the best platform to start your career in IT.

Fill in the blanks in the code you've already been given.

Once you've completed this task, click the button below the code to check your solution.

Soluzione

123
age = 20 if age > 18: print('You can vote')
copy

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 1
toggle bottom row

book
Introduction to if Statement

Compito

Swipe to start coding

  1. You have the following string: string = 'codefinity';
  2. Count the length of this string and write the result to the variable len_of_string;
  3. Write if statement that checks for the following condition: if the string length is greater than 7 , print the following text: Codefinity is the best platform to start your career in IT.

Fill in the blanks in the code you've already been given.

Once you've completed this task, click the button below the code to check your solution.

Soluzione

123
age = 20 if age > 18: print('You can vote')
copy

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 1
Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt