Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

list exaple in python

#!/usr/bin/python

list1 = ['physics', 'chemistry', 1997, 2000]
list2 = [1, 2, 3, 4, 5, 6, 7 ]
print "list1[0]: ", list1[0]
print "list2[1:5]: ", list2[1:5]
Comment

PREVIOUS NEXT
Code Example
Python :: how to serial print line break 
Python :: Python Record live streams (TS FILES) 
Python :: snipe cmd python.py 
Python :: tkl to pkr 
Python :: df sum 
Python :: quicksort python 
Python :: python continue outer loop 
Python :: python unsigned to signed integer 
Python :: how to open any application in python 
Python :: numpy array to int type 
Python :: run python in background ubuntu 
Python :: concat series to dataframe 
Python :: syntax error python 
Python :: days calculator python 
Python :: python sort array by key 
Python :: python sort array by lambda 
Python :: python < 
Python :: how to import a module from a different directory in python 
Python :: flask socketio send 
Python :: how to access variable of one function in another function in python 
Python :: jupyter notebook set password 
Python :: how to read frame width of video in cv2 
Python :: convert int to hexadecimal 
Python :: if we use list in the dictionary 
Python :: migration django 
Python :: Issue AttributeError: ‘numpy.ndarray’ object has no attribute ‘index’ 
Python :: copy multiple files from one folder to another folder 
Python :: how to convert one dimensional array into two dimensional array 
Python :: find last element in list python 
Python :: Numpy split array into chunks of equal size 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =