Mind map
Enter text here
Map content
Enter text here
A: It returns a number within, and including, the upper and lower limits.
- Q2: What is "random" and what is the purpose of using the period (.) before randint?
- A: Random is a module, and randint is a method. The period separates the two.
- Q3: What does the function print(_) do in the next line of code?
- A: The print function displays the contents of the parenthesis in the terminal, including the values of the strings.
- Q4: What is the purpose of the (+) operator in the next line of code?
- A: The (+) serves to concatenate strings. This will all be printed on the same line.
- Q5: What is the purpose of the function str(_) in the next line of code?
- A: The string function retrieves the value of a variable, in this case, random numbers.
- Q6: Is the variable (largest) global or local? Why?
- Q6: Is the variable (largest) global or local? Why?
- A: The string function retrieves the value of a variable, in this case, random numbers.
- Q5: What is the purpose of the function str(_) in the next line of code?
- A: The (+) serves to concatenate strings. This will all be printed on the same line.
- Q4: What is the purpose of the (+) operator in the next line of code?
- A: The print function displays the contents of the parenthesis in the terminal, including the values of the strings.
- Q3: What does the function print(_) do in the next line of code?
- A: Random is a module, and randint is a method. The period separates the two.
- Q2: What is "random" and what is the purpose of using the period (.) before randint?
Information
- Description
- Mind Map on Enter text here, created by Austin Ross on 24/01/2021.
- Created by
- Austin Ross
- Views
- 0
- Rating