1 / 2
Sep 2021

Well whats wrong here??

a=eval(input())
b=eval(input())
c=eval(input())
d=eval(input())
e=eval(input())
if a!=42:
___print(a)
___if b!=42:
_______print(b)
_______if c!=42:
___________print( c)
___________if d!=42:
_______________print(d)
_______________if e!=42:
___________________print(e)

  • created

    Sep '21
  • last reply

    Sep '21
  • 1

    reply

  • 578

    views

  • 2

    users

Try it with this test case. It should print out the numbers 1 to 10.

1
2
3
4
5
6
7
8
9
10
42
43
44
45

You do understand the the example test case given in the problem is just that - an example to illustrate the I/O format. The real and hidden test cases are likely to be much bigger.