2025 GRADED A+
✔✔define concatenation - ✔✔(of strings) to join multiple strings together
x = 'glacier' + 'rain'
x = glacier rain
✔✔Upper function - ✔✔makes everything upper case
x.upper()
GLACIER RAIN
✔✔Lower function - ✔✔makes all the string values lower case
x.lower()
glacier rain
✔✔LEN function - ✔✔helps you know the length of a string
✔✔How do you perform comments? - ✔✔(#)
#too cool
#need a CDL for the dumpy
✔✔exponent function - ✔✔3**2
✔✔floor division - ✔✔3//4
like division but doesn't give decimal remainders
✔✔how do you find the root of a number - ✔✔you use exponents of the root function
i.e. to do square roots .5
✔✔remainders - ✔✔3 % 4
only shows remainders
✔✔-= - ✔✔decreasing a variable
✔✔+= - ✔✔increasing a variable
✔✔How do you round? - ✔✔the round function, you can also denote how many variable
you want to round to
round(6.3454,2)
round to two decimal points
✔✔What is a purpose of an IF statement - ✔✔validation of data
✔✔what are the three parts of the if block - ✔✔IF,ELIF,ELSE
, ✔✔can you have an IF statement with not ELIF or ELSE? - ✔✔Yes you can
✔✔Can you have an IF statement with just an else? - ✔✔yes
✔✔Why is indention so important? - ✔✔because it tells us that everything that is below
the indent is included in the block
✔✔do you only need one ELIF in a IF statemtn - ✔✔No you can have multiple in a
statement
✔✔nested if statement - ✔✔a selection statement used within another selection
statement
✔✔< - ✔✔less than
✔✔> - ✔✔Greater than\
✔✔<= - ✔✔less than or equal to
✔✔>= - ✔✔greater than or equal to
✔✔== - ✔✔equal to
✔✔!= - ✔✔not equal to
✔✔in - ✔✔true if the first string is included in the second
✔✔not in - ✔✔true if the first string can't be found in the second
✔✔While command - ✔✔Allows a section of code to be repeated as long as a certain
condition remains true
✔✔what is the purpose of a while loop - ✔✔validating inputs
✔✔While True: - ✔✔if this is the case you need a break because there is no way to
break the loop
✔✔what is a marker variable - ✔✔an assigned variable that helps the loop break
✔✔how do you ask for input from a user - ✔✔Input()
✔✔what type of data is that input interpreted as - ✔✔a string