Final Score: 0
Correct: 0
Level Reached: 1
Best Streak: 0
Difficulty: Medium
Type the Python slice that selects the highlighted characters.
Each character has a position (index) starting at 0:
"hello" → h=0, e=1, l=2, l=3, o=4
a[0] → first charactera[2] → third charactera[-1] → last charactera[-2] → second to lastSelect a range with [start:stop] (stop is excluded):
a[1:4] → characters at index 1, 2, 3a[:3] → first 3 charactersa[2:] → from index 2 to endAdd a step with [start:stop:step]:
a[::2] → every 2nd charactera[1::2] → every 2nd, starting at 1a[::-1] → reverse the string↓ Speed up spawn rate (resets each level)Esc Close this help