Mindmap
Programming
Inhalt der Mindmap
Programming
Data Types
- Integer
- A whole number
- 75
- int()
- A whole number
- Float
- A real number including decimals
- 59.6
- float()
- A real number including decimals
- Boolean
- A value that can be one of two values
- True or False
- A value that can be one of two values
- String
- Words, digits and symbols
- 19SadhbhMonaghan
- Stored using ascii
- str()
- Words, digits and symbols
- Integer
Iteration (Loops)
- While loop
- while CONDITION:
- The condition is a statement that may be true or false
- the code will keep repeating until the condition is false
- If the condition is always true, the code outside of the loop will never run
- name= "Bob" if name == "Bob" print("Hello")
- "Hello" will only print once
- name= "Bob" if name == "Bob" print("Hello")
- If the condition is always true, the code outside of the loop will never run
- the code will keep repeating until the condition is false
- The condition is a statement that may be true or false
- While true
- Using True ensures that the condition is always true
- The indented command will run over and over forever
- name= "Bob" while name == "Bob" print("Hello")
- "Hello" will keep printing until the program is stopped
- name= "Bob" while name == "Bob" print("Hello")
- The indented command will run over and over forever
- Using True ensures that the condition is always true
- while CONDITION:
- The process of repeating a section of code multiple times
- While loop
Variables
- A name you assign to a value
- myName = "Bob"
- A variable called myName is created
- The value, "Bob" is assigned to the variable
- myName = "Bob"
- myName = input()
- the input() function means that the variable "myName" can be stored as anything
- A name you assign to a value
Informationen
- Beschreibung
- Mindmap am Programming, erstellt von sadhbh monaghan am 01/03/2022.
- Erstellt von
- sadhbh monaghan
- Aufrufe
- 1
- Bewertung