Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

nested input python

x=int(input ("enter the size of list"))
stu=[]
record=[]
for i in range(0,x):

    
    stu.append(input())
    stu.append(input())
    record.append(stu)
    stu = []

print(record)
Source by g-kr.medium.com #
 
PREVIOUS NEXT
Tagged: #nested #input #python
ADD COMMENT
Topic
Name
1+2 =