GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

Revision

Lloyd Barron Englisch

Inhalt der Mindmap

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

Informationen

Beschreibung
Mindmap am Revision, erstellt von Lloyd Barron am 26/02/2019.
Erstellt von
Lloyd Barron
Aufrufe
2
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck