Course Content
TEST FREE COURSE
Introduction to if Statement
Task
- You have the following string:
string = 'codefinity'
; - Count the length of this string and write the result to the variable
len_of_string
; - 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.
age = 20 if age > 18: print('You can vote')
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 1
Introduction to if Statement
Task
- You have the following string:
string = 'codefinity'
; - Count the length of this string and write the result to the variable
len_of_string
; - 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.
age = 20 if age > 18: print('You can vote')
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 1
Introduction to if Statement
Task
- You have the following string:
string = 'codefinity'
; - Count the length of this string and write the result to the variable
len_of_string
; - 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.
age = 20 if age > 18: print('You can vote')
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Task
- You have the following string:
string = 'codefinity'
; - Count the length of this string and write the result to the variable
len_of_string
; - 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.
age = 20 if age > 18: print('You can vote')
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Section 1. Chapter 1
Switch to desktop for real-world practiceContinue from where you are using one of the options below