Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

list generation for python

l=[]
n = int(input("pls input the no of elements u need "))
print("enter",n,"elements")
for l in range(n):
     x = int(input())
        l .append(x)
print("generated list",l)
#it works :D
Comment

PREVIOUS NEXT
Code Example
Python :: import numpy as np import matplotlib.pyplot as plt index = 0 missClassifiedIndexes = [] for label, predit in zip(y_test, predictions): if label != predict: missClassifiedIndexes.append(index) index = +1 
Python :: python string: string concatenation 
Python :: how to change the starting number for the loop count in pythin 
Python :: Missing Data Plotly Express px.data 
Python :: python function pointer with multiple args 
Python :: custom header footer in odoo 
Python :: printing a varible with a varible. python 
Python :: pdf reading shows gibberish python 
Python :: print A to Z in python uppercase 
Python :: pandas read sql generator to dataframe 
Python :: run persistent py script in background (good for flask) 
Python :: how to stop a while loop in opencv 
Python :: how to run matlab script with arguments in python 
Python :: how to identify set list and tuple in python 
Python :: mkvirtualenv 
Python :: python source script custom functions 
Python :: py3-env.bat 
Python :: open a tkinter window fullscreen with button 
Python :: loop through dataframe and assign values based on previous row 
Python :: dict pop with index python 
Python :: how to make python faster 
Python :: python scale function 
Python :: connect two mathod to the same button in pyq5 
Python :: python ask for real values until negative value diplay highest and lowest 
Python :: how to convert string labels to numpy array 
Python :: exec inside def is not working in python 
Python :: extract label from tf data 
Python :: equivalent of spread in R in python 
Python :: fibonacci function python 
Python :: np.ma.filled 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =