APCSP Unit 3 - Math in Python

studied byStudied by 127 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 2220 people
... ago
4.7(3)
note Note
studied byStudied by 24 people
... ago
5.0(1)
note Note
studied byStudied by 42 people
... ago
5.0(2)
note Note
studied byStudied by 48 people
... ago
5.0(1)
note Note
studied byStudied by 452 people
... ago
5.0(3)
note Note
studied byStudied by 43 people
... ago
5.0(1)
note Note
studied byStudied by 19 people
... ago
4.5(2)
note Note
studied byStudied by 23406 people
... ago
4.5(119)

Explore top flashcards

flashcards Flashcard (41)
studied byStudied by 2 people
... ago
4.0(1)
flashcards Flashcard (26)
studied byStudied by 173 people
... ago
5.0(1)
flashcards Flashcard (48)
studied byStudied by 21 people
... ago
5.0(1)
flashcards Flashcard (41)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (47)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (22)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (22)
studied byStudied by 3 people
... ago
5.0(1)
robot