GRADED A+
✔✔For questions in decisions what are the answers - ✔✔Yes and no
✔✔For statements in decisions what are the answers - ✔✔True and false
✔✔What is a program? - ✔✔a set of instructions that a computer follows to perform a
task
✔✔IDE - ✔✔Integrated Development Environment
✔✔What are the types of IDEs - ✔✔Spider, IDLE Jupiter notebook, Pycharm
✔✔What is the console good for - ✔✔Trying out single lines of code and explore the
current status of objects
✔✔Where is the console - ✔✔Bottom right
✔✔All text variable must have what around the - ✔✔Quotes
✔✔What are the three variable types - ✔✔Integer, float, string
✔✔What is an integer variable - ✔✔Any whole number
✔✔What is a float variable? - ✔✔Any number that Include a decimal with a number after
it. Even 0
✔✔What is a string variable - ✔✔Any text value ( must have quotes around it)
✔✔A variable must be __________ in a program - ✔✔
✔✔Declaring integers variables - ✔✔Set the variable = to a whole number with no
quotes and not decimal pionts
✔✔Declaring floats - ✔✔Set the variable to a number with no quotes but a decimal piont
even if it is 0
✔✔Declaring String Variables - ✔✔Set variable to a value contained in quotes
✔✔Print command - ✔✔Outputs content print(x)
✔✔All text that is in a variable need to be - ✔✔In quotes
, ✔✔When printing a combination of quoted variables what do you need to remember? -
✔✔Quotes text has to be contianed in quotes
Variables cannot be contained in quotes
Separate the quotes text from variable using comma
Print("the value of a is",a, " the value of b is",b, ".")
✔✔To we separate extra printed space what needs to be put in? - ✔✔Spe=''
✔✔What are the place holders for variable values - ✔✔%s= string variae
%d = integer value
%f= float value
✔✔What are comments in python - ✔✔Inserts code without running it
✔✔What taken does python ignore - ✔✔#
✔✔Why should you comment in code - ✔✔So you don't forget what the code is
supposed to do
So someone else can understand what the code is supposed to do
To show what major sections of code are doing
✔✔Math symbol for addition in python - ✔✔+
✔✔Math symbol for subtraction in python - ✔✔-
✔✔Math symbol for miltiplication in python - ✔✔*
✔✔Math symbol for division in python - ✔✔/
✔✔Math symbol for exponent in python - ✔✔**
✔✔Math symbol for remainder in python - ✔✔% remainder
✔✔Math symbol for floor division in python - ✔✔//
✔✔floor division - ✔✔The operation that divides two numbers and chops off the fraction
part.
✔✔increment equation - ✔✔A+=1
✔✔Decrementing equation - ✔✔A-=1
✔✔What are the three ways to change variable types - ✔✔Str(value) provides sting
value