I have typed the following code, but the output is different from what I am expecting
n=int(input(\'enter number of items: \')) for i in range(n): cost=int