strings
name that code
expressions
conditions
functions and iterations
100

What does 'hello'[::-1] return in Python?

'elloh'

100

I need to test if something is true or false?

boolean logic

100

what would this output

print('hey whats up \n not much what about you')

hey whats up

not much what about you

100

if 5 == 6:

print('h')

else:

print('y')

which letter will print

y

100

what defines a function

def

200

Which method converts all characters of a string to uppercase?

upper()

200

I need to repeat code a number of times

a loop

200

what is the order of operations in coding when doing math

pemdas

200

what does the if statement test

if something is false or true

200

for i in range 3: print(i)

0 1 2

300

can you add strings together true or false

true

300

what do you do if you get an error that you cant fix


let me know if this one is too hard btw

error check and patch

300

what does 10 % 3 =

1

300

is (if not) something you can use and if so what does it do

it tests if its not true or not false and is real

300

why do we write return at the end of a block

returns the value to the begin action

400

when using len what would len('python') output

6

400

if break breaks out of the loop what does continue do?

continue in the loop

400

what is a integer 

whole number

400

x = 0

if x == 0:

print('yo')

yo

400

what happens if I forget to close a while loop

crashes/runs infinite number of times

500

What does 'banana'.count('a') return?

3

500

what is the segment of a string

slice

500

what is a float

scientific number or .deci number

500

x = 0

if x == '0':

print(yo')

error

500

what does the else statement do and how does it reelate to false (i know this isnt the subject but its a good question)

* the else statement cuases one or more statement to execute when the statement is false *

M
e
n
u