My issue
t = int(input())
for i in range(t):
N = int(input())
print(2*N)
Traceback (most recent call last):
File “/mnt/sol.py”, line 3, in
t = int(input())
^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ‘’
My code
# Debug the following code to solve the problem
t = int(input())
for i in range(t):
N = int(input())
print(2*N)
Learning course: Design and Analysis of Algorithms
Problem Link: Debug this code - Why is this code incorrect in Design and Analysis of Algorithms