repl.it
Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
store_1_units = int(input('How many units at store 1? '))
store_1_total_cost = int(input('Total cost at store 1? '))
store_1_unit_cost = store_1_total_cost / store_1_units
store_2_units = int(input('How many units at store 2? '))
store_2_total_cost = int(input('Total cost at store 2? '))
store_2_unit_cost = store_2_total_cost / store_2_units
# Say which is the better deal 
print(store_1_unit_cost, store_2_unit_cost)
Fetching token
?