Python Programming with 100% correct answers
Comment - # allows you to make a comment on your code Lists - A list stores a series of items in particular order. You can access these items using an index or loop. Lists can be modified Example bikes = ['trek', 'redline', 'giant'] Tuples (tuple) - Tuples are similar to lists, but items in tuples cannot be modified IF statements - "IF" statements are used to test for particular conditions and respond accordingly. Example: equals x == 42 not equal x != 42 greater than x 42 or equal to x = 42 less than x 42 or equal to x = 42
Información del documento
- Subido en
- 25 de diciembre de 2023
- Número de páginas
- 3
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas