Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created April 26, 2021 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/c6673565c26ddfd936fea31e26a5eaae to your computer and use it in GitHub Desktop.
Save codecademydev/c6673565c26ddfd936fea31e26a5eaae to your computer and use it in GitHub Desktop.
Codecademy export
# Checkpoint 1
toppings = ["pepperoni", "pineapple", "cheese", "sausage", "olives", "anchovies", "mushrooms"]
# Checkpoint 2
prices = [2,6,1,3,2,7,2]
# Checkpoint 3
num_two_dollar_slices = prices.count(2)
print(num_two_dollar_slices)
# Checkpoint 4
num_pizzas = len(toppings)
print(num_pizzas)
# Checkpoint 5
print("We sell ", num_pizzas, "different kinds of pizza!")
# Checkpoint 6
pizza_and_prices = [prices + toppings]
print(pizza_and_prices)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment