APCSP Unit 3 - Math in Python

studied byStudied by 83 people
5.0(3)
get a hint
hint

metadata

1 / 27

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 15 people
Updated ... ago
4.8 Stars(6)
note Note
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 15 people
Updated ... ago
5.0 Stars(3)
note Note
studied byStudied by 4 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 20 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 7930 people
Updated ... ago
4.7 Stars(68)

Explore top flashcards

flashcards Flashcard30 terms
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard95 terms
studied byStudied by 54 people
Updated ... ago
5.0 Stars(4)
flashcards Flashcard48 terms
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard33 terms
studied byStudied by 39 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard133 terms
studied byStudied by 37 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard55 terms
studied byStudied by 236 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard61 terms
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard444 terms
studied byStudied by 156 people
Updated ... ago
5.0 Stars(4)