Need help in taking multi line input separated by blank line in python 3

I need help in taking multi line input separated by blank line after each input in python3.
For example, i have to take input as first line T test cases, first and only line of each test case has N. Their is a blank line after each input as follows
2 #T

4 #N

8 #N

I tried following
t=int(input())
while(t):
n=int(input())
t-=1

But it throws NZEC Runtime error as
File “/.prog.py” line 4, in
ValueError: not enough values to unpack (expected 1 , got 0)

Please help me for how to handle this.

You can share the link of Q and sol.
But if you want to skip a blank line, you can do this for an empty line in Python

input()
1 Like

A little bit of googling can save a lot of pain and time.


I literally wrote what was heading of this blog and got the answer in 2nd link (first being this page itslef)

1 Like

Thanks for help, it works.