Answers for "list .extend syntax in python"

2

list.extend

# languages list
languages = ['French', 'English']

# another list of language
languages1 = ['Spanish', 'Portuguese']

# appending language1 elements to language
languages.extend(languages1)

print('Languages List:', languages)
Posted by: Guest on March-22-2021

Python Answers by Framework

Browse Popular Code Answers by Language