Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

add two list in python

list1 = ["a", "b" , "c"]
list2 = [1, 2, 3]

list1.extend(list2)
print(list1)
Comment

how to add two lists in python

list1 = ["M", "na", "i", "Ke"] 
list2 = ["y", "me", "s", "lly"]
list3 = [i + j for i, j in zip(list1, list2)]
print(list3)
# My name is Kelly
Comment

PREVIOUS NEXT
Code Example
Python :: iterate through an array python 
Python :: numpy stack arrays vertically 
Python :: python pynput space 
Python :: batchnormalization keras 
Python :: df rename columns 
Python :: Plotly set axes labels 
Python :: obtener el mayor valor de un diccionario python 
Python :: visitor IP address django 
Python :: valor absoluto en python 
Python :: python convert string to bytes 
Python :: count of datatypes in columns 
Python :: how to fix Crypto.Cipher could not be resolved in python 
Python :: select rows from a list of indices pandas 
Python :: regular expression to remove space python 
Python :: python lock using a file 
Python :: delete database entry using name django 
Python :: get title beautifulsoup 
Python :: get name of variable python 
Python :: how to make a string case insensitive in python 
Python :: bash python csv to json 
Python :: creating a pandas df 
Python :: python dictionary rename key 
Python :: python random list of integers without repetition 
Python :: how to play mp3 files using vlc python library 
Python :: hex to rgb python 
Python :: how to get today weekday in python 
Python :: difference between for loop and while loop in python 
Python :: python slicing nested list 
Python :: discord.py autorole 
Python :: matplotlib point labels 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =