GoConqr has a new look! Let us know what you think.

Mind map

1) The function "random.randint(_,_)" makes and returns a random number in between the given range

Conner Goddu English

Map content

1) The function "random.randint(_,_)" makes and returns a random number in between the given range

  1. 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

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

Feedback

What is it about?

What do you think of the new look?

How do you like it?