Mindmap
Key words
Inhalt der Mindmap
Key words
Data types
- Bool
- short for Boolean
- true
- false
- Int
- short for intergers
- numbers
- 1
- 58
- Str
- short for string
- text numbers and symbols
- hiya
- 14
- #@*$
- Float
- decimal numbers
- 0.112
- 7.659
- Bool
validation
- .lower()
- turns a string into lower case
- DOG into dog
- .upper()
- tuns a string into upper case
- jim into JIM
- while loop
- to keep the code looping around until the user answer is correct
- while True:
- str(variable_name)
- turns a integer into a string when concatenating
- int(variable_name)
- turns a string into a integer when concatenating
- .lower()
Loops
- while loop
- good for validation
- for loop
- if you want it to loop around a number of times
- break
- used to get out of a loop
- while loop
libraries
- pre written code that the code uses
- only used by code if it has been imported
- import random
- random.choice
- will randomly pick something out of an array
- random.randint
- will randomly select a number
- random.choice
Informationen
- Beschreibung
- Mindmap am Key words, erstellt von jake.maynard100210 am 11/09/2014.
- Erstellt von
- jake.maynard100210
- Aufrufe
- 9
- Bewertung