Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

You have this list already defined:

python
numbers = [10, 20, 30, 40, 50, 60]

Use slicing to:

  1. Print the first 3 items of the list.
  2. Print the last 2 items of the list.

Expected output:

text
[10, 20, 30]
[50, 60]

💡 Hints

?Hint 1
🔒Hint 2
🔒Hint 3
python