Section 1

Preview this deck

Array/list

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 (27)

Section 1

(27 cards)

Array/list

Front

A sequence of items or arbitrary length/ items are ordered by index

Back

And operator and

Front

Returns True if both sides return True

Back

Negation operator not

Front

Flips the truth value of whatever comes after it

Back

Greater than or equal to >=

Front

Returns True if left side is greater than or equal to the right

Back

input() input('prompt')

Front

Prints the prompt in the terminal and returns whatever string the user types

Back

Interpolation

Front

Interpolation is inserting a variable inside a string.

Back

int() int(string or float)

Front

Converts the string or float in parentheses to an integer

Back

Not equal to !=

Front

Returns True if both sides are not the same

Back

Comparison operator ==

Front

Returns True if both sides are the same

Back

Or operator or

Front

Returns True if at least one side returns True

Back

String

Front

A series of characters, can be any ASCII character

Back

min(int , int)

Front

Returns the smallest integer listed in parentheses

Back

list() list(string or keys)

Front

Returns the string or dictionary keys in parentheses as an array (AKA list)

Back

Integer

Front

A number that does not have a decimal

Back

Less than <

Front

Returns True if right side is greater than the left

Back

Boolean

Front

The value of True or False

Back

Greater than >

Front

Returns True if left side is greater than the right

Back

abs(int)

Front

Returns the absolute value of the integer in parentheses

Back

Dictionary

Front

A set of items using a key/value organization / items are not ordered but rather use key

Back

len() len(string or array)

Front

Returns the number of characters in a string or the number of items in an array

Back

float() float(int)

Front

Converts the integer in parentheses to a float

Back

print() print(variable)

Front

Outputs text into the terminal

Back

max(int, int)

Front

Returns the largest integer listed in parentheses

Back

str() str(int or float)

Front

Converts the integer or float in parentheses as a string

Back

Concatenation

Front

Concatenation is adding two objects together.

Back

Float

Front

A number that does have a decimal

Back

Less than or equal to <=

Front

Returns True if right side is greater than or equal to the left

Back