Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

input and ouput array in python

a = []
for i in range(1,n+1):
    a.append(int(input("Nhap phan tu thu %d: " % i)))
    
print(a)
Comment

PREVIOUS NEXT
Code Example
Python :: python create sqlite db in memory 
Python :: initialize dictionary to zero in python 
Python :: how to make a list string in python 
Python :: numpy matrix power 
Python :: transpose matrix numpy 
Python :: post to instagram from pc python 
Python :: pandas merge on index column 
Python :: exit in python 
Python :: discord.py fetch channel 
Python :: python closure 
Python :: display values on top of seaborn bar plot 
Python :: python regex tester 
Python :: python copy deep arrays without reference 
Python :: python read in integers separated by spaces 
Python :: python comment multiple lines 
Python :: python curve fitting 
Python :: 13 pseudo random numbers between 0 to 3 python 
Python :: how to insert item last in list python 
Python :: TypeError: strptime() argument 1 must be str, not Series 
Python :: dataframe row print 
Python :: how to check if a input is an integer python 
Python :: python get file name without dir 
Python :: python code to receive gmail 
Python :: Converting uint8 into integers 
Python :: contains duplicate in python 
Python :: read a csv and plot in python 
Python :: how to delete a variable python 
Python :: select rows from a list of indices pandas 
Python :: detect operating system using python 
Python :: python to run another code on timer while a separate code runs 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =