Splicing
Data Types
Random Trivia
Conditional Statements
Collections
100

What will print?

string = "I love Python!"

print (string[8:)

Python!

100

"false" is an example of?

String

100

What is household dust mostly made of?

Human skin cells

100

What will print?

weather = "rain"

if weather == rain

print ("wear a rain coat")

wear a rain coat

100

Write any list with 4 items

Too many correct asnwers

200

What will print?

string="I'm sorry that I was out yesterday..."

print(string[5:10]

sorry

200

3.67 is an example of

Float

200

What is the powerhouse of the cell?

Mitochondira

200

What will print?

cold = false

if cold == True:

  print(“Wear a sweater!”)

Nothing

200

What would I use to remove "banana" from this set?

thisset = {"apple", "banana", "cherry"}

thisset.remove("banana")

300

What will print?

string="Hello students, I am running out of sentences"

print(string[2:2:)

lo suet, I a ung ot o etns

300

true is an example of

bool

300

What company trademarked the phrase "It's on like Donkey Kong"?

Nintendo
300

Fill in the blanks


if _____ === ______

code here

If condition == value

300

What will this return?

thisset = {"apple", "banana", "cherry"}

print(len(thisset))

3

400

What would print?

sentence = "Hello world!"

print(sentence[::-1])

!dlrow olleH

400

4 is an example of

integer

400

What is the longest recorded time that a chicken lived without a head?

18 months

400

Modulo 7 % 2

Now you have 7 cupcakes and 2 friends. How many cupcakes will you have left over if each friend receives an equal amount?

○How many cupcakes does each friend get?

7 % 2 = 1

400

How would you remove "John" key value pair from the dictionary? 

phonebook = {

   "John" : 938477566,

   "Jack" : 938377264,

   "Jill" : 947662781

}

phonebook.pop("John")

500

What will print

str = "winter"

print(str.replace(“w”,”b”))

binter

500

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.1 is an example of

Float

500

What is a noun?

Person, place or thing

500

Write the following 

Using input, ask for the temperature in Fahrenheit. Then write an elif statement:

# If temperature is greater than 85, print "it's hot outside"

# elif temperature is between 50 and 84 print "it's nice outside"

# else print "it is cold outside"

# Ask the user for the temperature in Fahrenheittemperature = float(input("Enter the temperature in Fahrenheit: "))


# Check the temperature and print the appropriate message 

if temperature > 85:    

print("It's hot outside")

elif 50 <= temperature <= 84:    

print("It's nice outside")

else:    

print("It is cold outside")

500

How would you check if there are "a"s are in the list

letters="a", "b", "a", "c", "a"

print ("a" in letters)