Section 1

Preview this deck

floor division

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (63)

Section 1

(50 cards)

floor division

Front

7//4 meaning that instead of it being 1.75, it discards the .75 and leaves it as 1 making the answer 1

Back

exp(x)

Front

e^x

Back

prompt

Front

at the bottom of the output (indicates that you can enter python instructions)

Back

syntax error

Front

some is wrong according to the rules of the language, and the error is detected before your program is actually run

Back

sqrt(x)

Front

square root of x

Back

modules

Front

what the python standard language is organized into

Back

argument

Front

any value the function needs to carry out its task - enclosed in parenthesis, multiple of these are separated by commas

Back

standard language

Front

considered part of the language and must be included with any python system

Back

trunc(x)

Front

truncates (shortens) floating-point value x to an integer

Back

operators

Front

symbols for arithmetic operations

Back

integer

Front

whole number without a fractional part

Back

floating point number

Front

when a fractional part is required of the integer

Back

number literal

Front

grouping a bunch of numbers together so you don't have to type it out every time

Back

variables

Front

store vlaue, a storage location in a comp program - each one holds a name and holds a value

Back

primitive data type

Front

provided by the language itself

Back

comments

Front

explanations for human readers of your code

Back

computer program

Front

tells a comp, in a min detail, the sequences of the steps that are needed to fulfill a task

Back

CPU

Front

locates and executes the program instructions: it carries out arithmetic operations such as additions, subtraction; gets data from external memory or devices and places processed data in storage

Back

degrees(x)

Front

convert x radians to _____ -> x*(180/pie)

Back

assignment statement

Front

place a value into a variable

Back

radians(x)

Front

convert x degrees to _____ -> x*(pie/180)

Back

programming

Front

the art of designing and implementing computer programs

Back

library

Front

a collection of code that has been written and translated by someone else, ready for you to use in your program

Back

characters

Front

letters, numbers, punctuation, spaces, and so on

Back

compound statement

Front

the header ended in a colon that spans multiple lines and ends with a statement block

Back

data type

Front

how the data is represented in the computer and what operations can be performed on that data

Back

VM

Front

separate program that is similar to the CPU of a comp

Back

modulus

Front

getting the remainder, make it 7%4

Back

string

Front

sequence of characters

Back

python shell

Front

interface for working in interactive mode

Back

return

Front

the answer you get after typing out your code in the space provided giving you the value that represents your identifier round(7.625) --> 8 round(7.625, 2) --> 7.63

Back

cos(x)

Front

the cosine of x in radians

Back

pseudocode

Front

the informal language a comp can not understand but is easier for us to understand

Back

statement block

Front

a group of one or more statements, all of which are indented into the same indention level

Back

length

Front

the amount of characters in the string

Back

compiler

Front

reads the file containing your source code and translates the instructions in to byte code

Back

string

Front

a sequence of characters enclosed in quotation marks

Back

sin(x)

Front

the sine of x in radians

Back

tan(x)

Front

the tangent of x in radians

Back

string literal

Front

grouping a bunch of words together (don't have to type it out every time)

Back

expression

Front

combination of variables, literals, operators, and parentheses

Back

reserved words

Front

"if" or "class" you can't use these to name a variable because these are already have certain names built into python

Back

hardware

Front

the physical computer and peripheral devices

Back

byte code

Front

very simple instructions understood by the VM

Back

software

Front

the programs that computer executes

Back

function

Front

a collection of programming instructions that carry out a particular task

Back

$%.2f

Front

placeholder including two decimal places

Back

source code

Front

python instructions that you wrote

Back

exception

Front

runtime error, logic error

Back

exponents

Front

2**a

Back

Section 2

(13 cards)

input validation

Front

your program accepts user input, you need to make sure that the user supplied values are valid before you use them in your computations.

Back

and

Front

the operator that is yielded when both conditions are true

Back

boolean variable

Front

to store a condition that can be true or false; special values

Back

substring

Front

one string contains an exact match of another string

Back

<=

Front

less than or equal to

Back

>=

Front

greater than or equal to

Back

<

Front

less than

Back

==

Front

equal

Back

or

Front

the operator that is yielded when one condition is true

Back

>

Front

greater than

Back

!=

Front

not equal

Back

nested branches

Front

an if statement inside another

Back

relational operator

Front

the comparison tool: < > <= >= == !=

Back