APCSP Unit 3 - Math in Python

studied byStudied by 131 people
5.0(3)
Get a hint
Hint

metadata

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 5 people
... ago
5.0(1)
note Note
studied byStudied by 14 people
... ago
5.0(1)
note Note
studied byStudied by 79 people
... ago
5.0(4)
note Note
studied byStudied by 2 people
... ago
4.0(1)
note Note
studied byStudied by 73 people
... ago
5.0(1)
note Note
studied byStudied by 27 people
... ago
4.5(2)
note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 32 people
... ago
4.5(2)

Explore top flashcards

flashcards Flashcard (335)
studied byStudied by 33 people
... ago
5.0(1)
flashcards Flashcard (115)
studied byStudied by 14 people
... ago
5.0(1)
flashcards Flashcard (27)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (44)
studied byStudied by 8 people
... ago
5.0(1)
flashcards Flashcard (94)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (75)
studied byStudied by 307 people
... ago
4.5(2)
flashcards Flashcard (172)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (632)
studied byStudied by 70 people
... ago
5.0(1)
robot