Q. What is the output produced by the following code snippet?


alst = [1, 2, 3, 4, 5, 6, 7, 8, 9]

print (alst[::3])


Answer :-

[1, 4, 7]

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post