Sunday, March 3, 2019

List Slicing - Python3

list1 = [14, 26, 4, 3, 7, 6, 9, 4, 65, 3, 8, 6, 30, 2]
list2 = list1[3:12:3]
list2[2] += list1[4]
list1[0] = list2[1]
print(list2)

ScreenShot:


No comments:

Post a Comment