Help me in solving PREQ12 problem

My issue

Debug this code - Why is this code incorrect
Now try and debug this problem.

You are given a program in the IDE which is trying to do the following

Accepts the count of test cases -
t
t - in the 1st line
Each line of test case consists of an integer
N
N
For each test case, it is supposed to print double the integer
N
N as the output
Sample 1:
Input
Output
3
1
2
3
2
4
6
Did you like the problem?
6 users found this helpful
PYTH 3

t = int(input())

3
1
2
3
Sample Input
3
1
2
3
Your Output
6

My code

# Debug the code below to solve the problem

t = int(input())
for _ in range(t):
    N = int(input())
print(N * 2)

Learning course: Design and Analysis of Algorithms
Problem Link: https://www.codechef.com/learn/course/kl-daa/KLDAA24PRE01/problems/PREQ12