GoConqr has a new look! Let us know what you think.

Mind map

Revision

Lloyd Barron English

Map content

Revision

  1. 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
  2. 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

Information

Description
Mind Map on Revision, created by Lloyd Barron on 26/02/2019.
Created by
Lloyd Barron
Views
2
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?