“Extend” Allow to take a list and append another list at the end of it. # language list 1.language = ['French', 'English', 'German'] # another list of language 2.language1 = ['Spanish', 'Portuguese'] 3.language.extend(language1) # Extended List 4.print('Language List: ', language) When you run the program, the output will be: Language List: ['French', 'English', 'German', 'Spanish', 'Portuguese']
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter