New course! Every coder should learn Generative AI!
Try a free lesson+ 4
Better you not convert the input to lower() case. Try input as it is.
And one i know is task requires is to round up result to 2 decimal point. So try
print( round( sm*1.07, 2) )
+ 7
Antonio Mariani ,
> as already mentioned, do not convert input to lower.
> modify the strings in *dict items* so that each of them starts with a capital letter.
> after adding tax, round the total sum to 2 decimal places
+ 2
I think, task is asking to round up results..! Recheck description again..