this is my code … i am getting “wrong answer” after submitting user_input =input() numbers = list(map(int,user_input)) sorted_op =[] for num in numbers: if num != 42: sorted_op.append(num) else: sorted_op.append(num)
When you run it on the sample test case, does it produce the correct output? Does it produce any output?
nothing is being displayed
And what do you deduce from this?