Mind map
Assignment 1
Map content
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
Information
- Description
- Mind Map on Assignment 1, created by Tiffany Conklin on 15/01/2021.
- Created by
- Tiffany Conklin · Jan 2021
- Updated
- Jan 15, 2021
- Views
- 0
- Rating