| Num Bars (input) | Cost in £s (output) | Cost Breakdown |
| 3 | 3.75 | 3 single bars |
| 12 | 10 | 2 six packs |
| 15 | 13.75 | 2 sixpacks and 3 single bars |
| 26 | 20.25 | 4 sixpacks, 2 singles (22.50), 10% discount (-2.25). |
input command
in Python is alway a string; so you will have to convert the input
string into an integer value.
int or float
but not a string) and should be the
value of the last argument of the last print statement
of your program.