Beginner Python
Q11 / 101

What is the result of: "Python"[1:4]?

Correct! Well done.

Incorrect.

The correct answer is B) yth

B

Correct Answer

yth

Explanation

Slicing [1:4] returns characters at indices 1, 2, 3 (exclusive of 4): 'y', 't', 'h' → "yth".

Progress
11/101