The process of storing a value in a variable.
Assignment
A collection of code and functions that perform similar tasks.
Module
The built-in function that allows you to use
math.sqrt()
math
(used by starting your program with: import math)
x = 123
y = x % 25
print(y)
23
x = 9
y = 2
z = 4
print(x + y**2 - z)
9
A symbol that defines a math operation.
Operator
A module used to create random numbers in programs. The numbers generated are not really random.
random
(used by starting your program with
import random)
The method from the math function, which makes any number positive.
In other words, removes negative signs.
math.fabs()
x = 15.073
y = x - int(x)
print(y)
0.073
x = 4
x = x * 3
print(x)
12
Command that finds the smallest value in a set of values.
min()
Data sets that are too large and complex for traditional data processing applications.
Big Data
The built-in function that allows you to use:
random.randint()
random
(used by starting your program with:
import random)
The user enters Apple as the input:
x = int(input("Enter a number: "))
print(x)
Error
x = 4
print("The number is: " + str(2*x) + ".")
The number is: 8
Command that finds the largest value in a set of values.
max()
2^40 or one million million (10^12) bytes.
Terabyte
Command that pulls in code to add functions to your code.
import
Numbers that can possibly be printed by:
import random
print(random.randint(3, 4))
3 or 4
list = ("cat", "fish", "apron", "land", "snake", "fish")
y = min(list)
print(y)
apron
A calculation which gives the remainder of integers which have been divided.
Modular Division
A collection of commands given a name, for example, math.sqrt()
Function
The range of values output by:
import random
x = random.random()
print(x)
(greater than or equal to zero, and less than 1)
(from 0, up to and not including 1.0)
(a positive decimal less than 1.0)
line of code that will produce integers between and including -7 to 23
random.randint(-7, 23)
import math
x = math.pow(3, 2)
print(x)
9