Introduction to if Statement
Tarea
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 statementthat 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.
Solución
123age = 20 if age > 18: print('You can vote')
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 1
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Suggested prompts:
Resumir este capítulo
Explicar el código en file
Explicar por qué file no resuelve la tarea
Awesome!
Completion rate improved to 33.33
Introduction to if Statement
Desliza para mostrar el menú
Tarea
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 statementthat 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.
Solución
123age = 20 if age > 18: print('You can vote')
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 1
single