Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created May 16, 2019 01:42
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/21c8a064af2702cde4d1b6221f40ad0c to your computer and use it in GitHub Desktop.
Save codecademydev/21c8a064af2702cde4d1b6221f40ad0c to your computer and use it in GitHub Desktop.
Codecademy export
hairstyles = ["bouffant", "pixie", "dreadlocks", "crew", "bowl", "bob", "mohawk", "flattop"]
prices = [30, 25, 40, 20, 20, 35, 50, 35]
last_week = [2, 3, 5, 8, 4, 4, 6, 2]
total_price=0
for price in prices:
total_price+=price
average_price = total_price/len(prices)
print("Average Haircut Price:${0}".format(average_price))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment