Can someone tell me what is wrong in this code?

Problem Code: FLOW004

t = int(input("enter the testcase "))

first = 0

last = 0

for i in range(t) :

n = int(input())

last = n % 10

while n>=10 :

    n = n/10

first = int(n)


Is is working perfectly in vs code but showing error in codechef

what error ? can you share the link of your code ?

how to share that

Remove the string ‘enter the testcase’, then the code should work fine.

1 Like

do what prax said , make

t = int(input())


t = int(input("enter the testcase "))
1 Like


thanks:) but can u plzz tell me why we did it…

Because it is not asked in problem to do so , you just have to take input without printing anything while taking input .

1 Like