Hello guys,
Hope you are fine!
Can you please help me to understand the logic behind this piece of code
my_list = [0, 1, 2, 3, 4]
print(my_list[::3])
Output → 0,3
Hello guys,
Hope you are fine!
Can you please help me to understand the logic behind this piece of code
my_list = [0, 1, 2, 3, 4]
print(my_list[::3])
Output → 0,3
slicing the array from the frist element till the last element with step three
Thank you so much! I really appreciate it!