







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








thislist = ["apple", "banana", "cherry", "apple", "cherry"] print(thislist)
Code
thislist = ["apple", "banana", "cherry"] thislist[ 1 : 3 ] = ["watermelon"] print(thislist)
Try it Yourself ยป
List = [] print("Blank List: ") print(List)
List = [10, 20, 14] print("\nList of numbers: ") print(List)
List = ["Geeks", "For", "Geeks"] print("\nList Items: ") print(List[0]) print(List[2])