giving error in first line while summiting but custom code runs fine

T=input()
for i in range(int(T)):