Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: significant figures on axes plot matplotlib 
Python :: rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrooom 
Python :: what does waka waka mean 
Python :: python web server oneliner 
Python :: make row readonly tablewidget pyqt 
Python :: how to make a time limit using renpy 
Python :: sklearn pipeline with interactions python 
Python :: python - retrieve unconnected node pairs 
Python :: stackoverflow ocr,cropping letters 
Python :: how to push the element to array in python 
Python :: derivative of multivariable function pytorch 
Python :: feed-forward network medium 
Shell :: install git ec2 linux 
Shell :: how to delete dangling docker images 
Shell :: pip upgrade 
Shell :: Zsh is not installed. Please install zsh first. 
Shell :: how to start nginx in linux 
Shell :: upgrade pillow version 
Shell :: commited to wrong branch 
Shell :: ubuntu disabling IPV6 
Shell :: install redis on mac pro 
Shell :: undo git 
Shell :: nvm ubuntu 
Shell :: linux list files by size mb 
Shell :: kill port linux 
Shell :: remove git repository windows 
Shell :: shutdown pc in 10 min run command 
Shell :: command not found: lvim 
Shell :: install docker nvidia 2 
Shell :: bash script create file if not exist 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =