# your code goes here 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) print(first+last)
Standard input is empty
enter the testcase
Traceback (most recent call last): File "./prog.py", line 2, in <module> EOFError: EOF when reading a line