Mapa mental
Revision
Conteúdo do mapa
Revision
Variables are named locations in memory that are used to store temporary values that can change as the program is run
- Constants are named locations in memory that are used to store values that do not change throughout the program's execution
- The value stored by variable or constant can be set or recalled by using the identifier (name) of the variable
- Python doesn't require that variables are explicitly declared before they are used. Instead, they are automatically declared upon first use. Python also doesn't require that the type of data being stored is stated, it simply infers the data's type from the data that is assigned to (stored
- In pseudocode, a statement to get a random number between a minimum and maximum value could be represented as: random_no = get_random(min, max) For example, dice_value = get_random(1,6)
- The process of setting a value to a variable or constant is called assignment
- Constants are named locations in memory that are used to store values that do not change throughout the program's execution
In some programming languages, variables need to be declared before they can be used to store data. ■ Declaring a variable means to state its name (identifier) and the type of data that it will contain, for example var player_score Int ■ Python doesn't require that variables are explicitly declared before they are used. Instead, they are automatically declared upon first use. Python also doesn't require that the type of data being stored is stated, it simply infers the data's type from the data that is assigned to (stored
Informações
- Descrição
- Mapa Mental sobre Revision, criado por Lloyd Barron em 26-02-2019.
- Criado por
- Lloyd Barron
- Visualizações
- 2
- Avaliação