+ 1

kaleidoscope challenge

can anyone help me find the error in my code for the kaleidoscope challenge? It’s passing all of the tests except for the second case which is input = 3, and the expected outcome doesn’t make sense to me. Has anyone else encountered this issue? num = int(input()) if num < 10: subtotal = 5.00 * num elif num >= 10: subtotal = 4.50 * num withTax = subtotal * 1.07 print('{:.2f}'.format(withTax))

26th Dec 2019, 6:55 AM
Jo Cichon
Jo Cichon - avatar
2 Réponses
+ 1
The customer gets a 10% discount when they buy more than 1 on all of them.
26th Dec 2019, 7:40 AM
Dennis
Dennis - avatar
+ 1
duh! I figured it was something like that. thanks for your help :)
26th Dec 2019, 7:46 AM
Jo Cichon
Jo Cichon - avatar