Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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]
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #python #set #tuples
ADD COMMENT
Topic
Name
4+1 =