Mapa mental
Key words
Conteúdo do mapa
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
Informações
- Descrição
- Mapa Mental sobre Key words, criado por jake.maynard100210 em 11-09-2014.
- Criado por
- jake.maynard100210
- Visualizações
- 9
- Avaliação