Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list python replace

# Replace 'Koweit' To 'Sudan'
my_list = [ "Egypt", "Koweit", "Algeria", "Morocco", "Tunisia" ]
my_list[ 1 ] = "Sudan"
print( my_list )
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #list #python #replace
ADD COMMENT
Topic
Name
9+3 =