+ 3

What is wrong in this code coach problem(kaleidoscope)?

n=int(input()) def tax(p): cs=(7/100)*p cost=cs+p print(cost) return if(n==1): tax(5) else: l=n*5 dis=(10/100)*l dis=l-dis tax(dis)

15th May 2020, 1:08 PM
Vinay Pal
Vinay Pal - avatar
3 Answers
+ 2
Ohh,,,I forgot to delete,,,actually I was trying different math function in it,,but all gave me fail cases,,in this code only 2test case got failed.
15th May 2020, 6:59 PM
Vinay Pal
Vinay Pal - avatar
+ 2
But it don't effect the working of the code..
15th May 2020, 7:00 PM
Vinay Pal
Vinay Pal - avatar
0
But why did you import math if it has no use in the code
15th May 2020, 4:53 PM
Akshay Panwar
Akshay Panwar - avatar