python
strawberries_in_fridge = 7
number_of_eggs = 12
if strawberries_in_fridge >= 7:
print ("You can make strawberry shortcake!")
if number_of_eggs < 12:
print ("... if you go to the store first.")
else:
print ("So start baking!")
You can make strawberry shortcake!
So start baking!
Flip to see [answer/question]
Flip to see [answer/question]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Flip
Revise later
SpaceTo flip
If confident
All Flashcards
What does the following code output?
python
strawberries_in_fridge = 7
number_of_eggs = 12
if strawberries_in_fridge >= 7:
print ("You can make strawberry shortcake!")
if number_of_eggs < 12:
print ("... if you go to the store first.")
else:
print ("So start baking!")
You can make strawberry shortcake!
So start baking!
What does the following code output?
python
x = 5
if x > 10:
print("x is greater than 10")
elif x > 3:
print("x is greater than 3")
else:
print("x is not greater than 3")