LogiQuest
Back to Lists
15

What is the output of the following code?

a = [1, 2, 3, 4]
print(a[-2:], a[:-2])
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.