Introduction to if Statement
Aufgabe
Swipe to start coding
- 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.
Lösung
123age = 20 if age > 18: print('You can vote')
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 1
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Suggested prompts:
Zusammenfassen Sie dieses Kapitel
Code in file erklären
Erklären, warum file die Aufgabe nicht löst
Awesome!
Completion rate improved to 33.33
Introduction to if Statement
Swipe um das Menü anzuzeigen
Aufgabe
Swipe to start coding
- 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.
Lösung
123age = 20 if age > 18: print('You can vote')
War alles klar?
Danke für Ihr Feedback!
Awesome!
Completion rate improved to 33.33Abschnitt 1. Kapitel 1
single