Mapa mental
Term 4- Digi
Contenido del mapa
Term 4- Digi
Code constructs
- IF statement
- An IF statement checks a condition and only runs certain code when that condition is true.
- E.g: if age < 18: print("You are a minor.")
- An IF statement checks a condition and only runs certain code when that condition is true.
- FOR loop
- A FOR loop repeats a section of code a set number of times.
- E.g:
- A FOR loop repeats a section of code a set number of times.
- IF ELSE statements
- An IF-ELSE statement allows the robot to choose between two actions depending on whether a condition is true or false.
- E.g: if age >= 18: print("You are an adult.") else: print("You are a minor.")
- An IF-ELSE statement allows the robot to choose between two actions depending on whether a condition is true or false.
- WHILE loop
- A WHILE loop keeps repeating instructions as long as a condition is true
- E.g: while count <= 5
- A WHILE loop keeps repeating instructions as long as a condition is true
- Variables
- A variable stores information that can be used or changed while the program is running.
- E.g: user_name = "Alice"
- A variable stores information that can be used or changed while the program is running.
- IF statement
Información
- Descripción
- Mapa Mental sobre Term 4- Digi, creado por Raahi Gandhi el 06/10/2026.
- Creado por
- Raahi Gandhi
- Visitas
- 0
- Valoración