Vocab
More Vocab
Built-In Functions
The Output of...
More The Output of...
100

The process of storing a value in a variable.

Assignment

100

A collection of code and functions that perform similar tasks.

Module

100

The built-in function that allows you to use

math.sqrt()

math

(used by starting your program with: import math)

100

x = 123
y = x % 25

print(y)

23

100

x = 9
y = 2
z = 4

print(x + y**2 - z)

9

200

A symbol that defines a math operation.

Operator

200

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)


200

The method from the math function, which makes any number positive.

In other words, removes negative signs.

math.fabs()

200

x = 15.073
y = x - int(x)

print(y)

0.073

200

x = 4
x = x * 3

print(x)

12

300

Command that finds the smallest value in a set of values.

min()


300

Data sets that are too large and complex for traditional data processing applications.

Big Data


300

The built-in function that allows you to use:

random.randint()

random

(used by starting your program with:
import random)

300

The user enters Apple as the input:

x = int(input("Enter a number: "))

print(x)

Error

300

x = 4

print("The number is: " + str(2*x) + ".")

The number is: 8

400

Command that finds the largest value in a set of values.

max()


400

2^40 or one million million (10^12) bytes.


Terabyte


400

Command that pulls in code to add functions to your code.

import

400

Numbers that can possibly be printed by:

import random

print(random.randint(3, 4))

3 or 4

400

list = ("cat", "fish", "apron", "land", "snake", "fish")

y = min(list)

print(y)

apron

500

A calculation which gives the remainder of integers which have been divided.

Modular Division

500

A collection of commands given a name, for example, math.sqrt()

Function

500

The range of values output by:

import random

x = random.random()

print(x)

[0.0, 1.0)


(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)

500

line of code that will produce integers between and including -7 to 23

random.randint(-7, 23)

500

import math

x = math.pow(3, 2)

print(x)

9