I have to take multiple input in multiple lines
for example
n=int(input())
I have to take n input in n line and each line take multiple input
if n=5
then I have to take 5 input in 5 line
a=[1,2,3]
b=[1,2,3]
c=[1,2,3]
d=[1,2,3]
e=[1,2,3]
like this is just an example.
This would be what you need...
n = int(input())
for i in range(n):
exec(input())
print(a, b, c, d, e)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.