need help on this
Example to select first 5 items from the below list
nums = [10, 20, 30, 40, 50, 60, 70, 80, 90]
nums[:5]
output = [10, 20, 30, 40, 50]
If I want my output like below. Expected output = [10,20,60,70,90]
Please let me know how to achieve this.
I am trying something like this nums[:1,5:6,8] nums[0,1,5,6,8]