Mind map
1) The function "random.randint(_,_)" makes and returns a random number in between the given range
Map content
1) The function "random.randint(_,_)" makes and returns a random number in between the given range
2) "random" is a built-in module called that can be used to make random numbers. The period separates the module "random" from the method "randint".
- 3) The function "print(_)" outputs anything inside in the parenthesis out to the terminal
- 4) Within the "print()" function, the "+" operator separates lines of text from functions
- 5) The "str(_)" function converts a variable of another data type into a string, in this case from integer to string, for the purpose of output with other string.
- 6) The variable "largest" is local, because it is declared within the function and can only be used within the function.
- 7) "None" means there is no value assigned. It's different than 0. It means this variable is currently holding nothing
- 8) "inputValue" is a variable that takes in user input and the variable becomes whatever value is entered
- 9) "return" returns something back to the main function, as a result of the current function being called. It is what is returned at the end of a function
- 10) Declaring a function is it's first instance of it. It is declared and created in the programming space. Defining a function is writing more code beneath it's function declaration and defining what the function does when called. Calling is when the function name is entered outside of the function scope.
- 11) The variable "message" began as a small string of text, with a newline function at the end, and continued getting additional strings with the same newline feature, becoming multiple lines of text
- 10) Declaring a function is it's first instance of it. It is declared and created in the programming space. Defining a function is writing more code beneath it's function declaration and defining what the function does when called. Calling is when the function name is entered outside of the function scope.
- 9) "return" returns something back to the main function, as a result of the current function being called. It is what is returned at the end of a function
- 8) "inputValue" is a variable that takes in user input and the variable becomes whatever value is entered
- 7) "None" means there is no value assigned. It's different than 0. It means this variable is currently holding nothing
- 6) The variable "largest" is local, because it is declared within the function and can only be used within the function.
- 5) The "str(_)" function converts a variable of another data type into a string, in this case from integer to string, for the purpose of output with other string.
- 4) Within the "print()" function, the "+" operator separates lines of text from functions
- 3) The function "print(_)" outputs anything inside in the parenthesis out to the terminal
Information
- Description
- Mind Map on 1) The function "random.randint(_,_)" makes and returns a random number in between the given range, created by Conner Goddu on 17/11/2021.
- Created by
- Conner Goddu
- Views
- 0
- Rating
More on Python Modules and Packages