Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python set strings, lists, tuples

# Declaring a list
L = [1, "a" , "string" , 1+2]
print L
#Adding an element in the list
L.append(6)   
print L
#Deleting last element from a list
L.pop()
print L
#Displaying Second element of the list
print L[1]
Comment

PREVIOUS NEXT
Code Example
Python :: using return values python script in batch script 
Python :: adding multiple items to a list python 
Python :: normalize a distribution plot 
Python :: json file download 
Python :: write python code in ansible 
Python :: multiple ternary operator python 
Python :: Python Tkinter PanedWindow Widget Syntax 
Python :: python why is list unhashable but tuple is 
Python :: How to Loop Through Tuples using while loop in python 
Python :: how to track exact location of a phone number in python 
Python :: numpy retrieve 5 highest value index 
Python :: how to run a string as a line of code in pytho 
Python :: immutabledict working 
Python :: panda3d intervals 
Python :: Python | Program to print duplicates from a list of integers 
Python :: Find From Table Django 
Python :: Lightbank b2c 
Python :: python how to tell if class is initialized 
Python :: data structures in python 
Python :: python using recursion advanced 
Python :: Abstract Model inherit from another model django 
Python :: prefix in python 
Python :: linux echo redirect output to python script 
Python :: python bill 
Python :: voting classifier grid search 
Python :: python-wordpress-xmlrpc custom fields 
Python :: print greeting in python explication 
Python :: odd number list generator 
Python :: iloc[ ] slicing 
Python :: python reverse list every 2 element 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =