• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/9

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

9 Cards in this Set

  • Front
  • Back
variable
a variable is a word/identifier that grasps a single value

example:

spam = 5
integer
a positive or negative whole number
floats
fractional numbers written with a decimal point
booleans
a data type that can be True or False

never use quotation marks with booleans

always capitalize the first letter of booleans
statement
the smallest unit of the language that makes sense by itself

statements end with a white space

variables and data types are the building blocks of statements
comments
start with a # symbol

are not read by the interpreter

plain English comments written by the programmer to provide instructions
multi-line comments
lines that span more than one line

done with triple-quotes """blah blah...blah"""
arithmetic operators
Addition (+)
Subtraction (-)
Multiplication (*)
Division (/)
Exponentiation (**)
Modulo (%)
modulo
the remainder left over by an integer division

the remainder of a division between a and b