Mapa mental
Assignment 1
Conteúdo do mapa
Assignment 1
#1 random.randint(,)
- produces random integer within the specified range
#2 What is random and what is the purpose of the period before randint?
- random is a module
- The period is a dot operator and links the randint function to the random module
#3 print() function do in next line of code?
- displays the message inside the print function
#4 (+) operator in the next line of code?
- concatenates the strings
#5 purpose of the function str()
- converts the integer into a string
#6 is (largest) global or local?
- local because it is specified inside the function
#7 what does None mean?
- a null value
#8 what is inputValue?
- specifies that the user has to input a value
#9 what does return do?
- ends the function and returns the value
#10 difference between declaring, defining, and calling a function
- declaring: stating the data type and its name
- defining: the value of the variable
- calling a function:
- using the function and inputting an argument
Informações
- Descrição
- Mapa Mental sobre Assignment 1, criado por Tiffany Conklin em 15-01-2021.
- Criado por
- Tiffany Conklin · jan 2021
- Atualizado
- 15 jan 2021
- Visualizações
- 0
- Avaliação