Skip to content

Instantly share code, notes, and snippets.

@tomoconnor
Created September 19, 2019 14:42
Show Gist options
  • Save tomoconnor/4f4cdaa4e49e197943b33052f0759b93 to your computer and use it in GitHub Desktop.
Save tomoconnor/4f4cdaa4e49e197943b33052f0759b93 to your computer and use it in GitHub Desktop.
ladies = 8
desired_spiders = 8
required_spider_shoes_per_spider=8
spider_cost = 0.08 // 8 pence each
shoe_cost = 0.00125 // 1/8th of a pence
print("Shoe Shopping")
total_spider_count = ladies * des
total_spider_cost = total_spider_count * 0.08
total_shoe_count = ladies * desired_spiders * required_spider_shoes_per_spider
total_shoe_price = total_shoe_count * shoe_cost
shopping_total = total_spider_cost + total_shoe_price
print("Getting Home")
price_per_stop = 0.08
total_stops = 8
bus_fare_total = total_stops * price_per_stop * ladies
T = bus_fare_total + shopping_total
T
10.879999999999999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment