What will print?
string = "I love Python!"
print (string[8:)
Python!
"false" is an example of?
String
What is household dust mostly made of?
Human skin cells
What will print?
weather = "rain"
if weather == rain
print ("wear a rain coat")
wear a rain coat
Write any list with 4 items
Too many correct asnwers
What will print?
string="I'm sorry that I was out yesterday..."
print(string[5:10]
sorry
3.67 is an example of
Float
What is the powerhouse of the cell?
Mitochondira
What will print?
cold = false
if cold == True:
print(“Wear a sweater!”)
Nothing
What would I use to remove "banana" from this set?
thisset = {"apple", "banana", "cherry"}
thisset.remove("banana")
What will print?
string="Hello students, I am running out of sentences"
print(string[2:2:)
lo suet, I a ung ot o etns
true is an example of
bool
What company trademarked the phrase "It's on like Donkey Kong"?
Fill in the blanks
if _____ === ______
code here
If condition == value
What will this return?
thisset = {"apple", "banana", "cherry"}
print(len(thisset))
3
What would print?
sentence = "Hello world!"
print(sentence[::-1])
!dlrow olleH
4 is an example of
integer
What is the longest recorded time that a chicken lived without a head?
18 months
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
How would you remove "John" key value pair from the dictionary?
phonebook = {
"John" : 938477566,
"Jack" : 938377264,
"Jill" : 947662781
}
phonebook.pop("John")
What will print
str = "winter"
print(str.replace(“w”,”b”))
binter
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.1 is an example of
Float
What is a noun?
Person, place or thing
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")
How would you check if there are "a"s are in the list
letters="a", "b", "a", "c", "a"
print ("a" in letters)