Dapatkan daftar dari daftar python
list1 = [1, 2, 3, 4, 5]
list2 = list1[0:3]
print(list2)
//output
[1,2,3]
Helpless Hippopotamus
list1 = [1, 2, 3, 4, 5]
list2 = list1[0:3]
print(list2)
//output
[1,2,3]