APCSP Unit 3 - Math in Python

studied byStudied by 134 people
5.0(3)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 27

flashcard set

Earn XP

28 Terms

1

metadata

refers to data that provides information about other data. It describes various attributes of a piece of information, such as its format, size, author, creation date, and location.

New cards
2

comment

a piece of text in computer code that is ignored by the compiler but is helpful to readability and human understanding of the code. It is used to provide organization, explanations, notes, or reminders within the code.

New cards
3

debugging

the process of identifying and resolving errors or bugs in computer programs

New cards
4

+

the symbol for addition in Python

New cards
5

-

the symbol for subtraction in Python

New cards
6

*

the symbol for multiplication in Python

New cards
7

/

the symbol for regular division in Python

New cards
8

//

the symbol for integer division in Python

New cards
9

%

the symbol for modular division in Python

New cards
10

**

the symbol for exponentiation in Python

New cards
11

=

the “assign” symbol in Python

New cards
12

float( ) function

a function in Python that typecasts the parameter to a floating-point number

New cards
13

modular division

gives the remainder of an integer division problem

New cards
14

integer division

division in which the fractional part (remainder) is discarded

New cards
15

module

a collection of Python code that can be imported; each one is usually grouped by topic, such as math, sounds, graphics, etc.

New cards
16

import statement

a command that allows a programmer to pull in modules already filled with code, which can can add extra features to our programs

New cards
17

function

a reusable block of code that performs a specific task; it is defined with a name, a set of input parameters (optional), and a return value (optional); it’s an example of abstraction in programming

New cards
18

math module

a collection of Python code that can be imported to extend the ability of Python to perform more complex math operations

New cards
19

sqrt( )

a function in the math module of Python that returns the square root of the parameter

New cards
20

pow( )

a function in the math module of Python that returns the result of the first parameter raised to the power of the second parameter

New cards
21

fabs( )

a function in the math module of Python that returns the absolute value of the parameter as a float

New cards
22

random module

a collection of Python code that can be imported to help generate randomness

New cards
23

randint( )

a function in the random module that returns a random integer between (and including) the two parameters

New cards
24

abstraction

the process of removing or suppressing details to create a manageable level of complexity

New cards
25

high level programming language

a language that contains a significant amount of abstraction, is easier for humans to read, is guaranteed to be unambiguous, and must be compiled before being executed

New cards
26

low level programming language

a language that contains little or no abstraction, is difficult for humans to read, is guaranteed to be unambiguous, and communicates directly with computer hardware

New cards
27

Machine Language

another name for binary language

New cards
28

Assembly Language

a low-level symbolic code that can communicate with computer hardware

New cards

Explore top notes

note Note
studied byStudied by 31 people
15 days ago
5.0(1)
note Note
studied byStudied by 24 people
666 days ago
5.0(1)
note Note
studied byStudied by 24 people
849 days ago
5.0(1)
note Note
studied byStudied by 34 people
570 days ago
5.0(2)
note Note
studied byStudied by 22 people
657 days ago
4.5(2)
note Note
studied byStudied by 38 people
909 days ago
5.0(1)
note Note
studied byStudied by 12 people
125 days ago
5.0(1)
note Note
studied byStudied by 96 people
857 days ago
5.0(2)

Explore top flashcards

flashcards Flashcard (47)
studied byStudied by 44 people
785 days ago
5.0(2)
flashcards Flashcard (57)
studied byStudied by 7 people
465 days ago
5.0(1)
flashcards Flashcard (125)
studied byStudied by 4 people
672 days ago
5.0(1)
flashcards Flashcard (90)
studied byStudied by 3 people
276 days ago
5.0(1)
flashcards Flashcard (54)
studied byStudied by 13 people
710 days ago
5.0(2)
flashcards Flashcard (51)
studied byStudied by 3 people
673 days ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 55 people
374 days ago
5.0(1)
flashcards Flashcard (84)
studied byStudied by 870 people
519 days ago
5.0(1)
robot