Post

@PythonPr B.
It’s common for a beginner to mistake the first character in a list as the first index. However, lists in Python are 0-indexed, meaning the first character is at index 0, so in this case, index 1 is ‘y’.
English

@PythonPr With the right indentation-> B) Y
But, since print() is not in the right place, C) Error
English

@PythonPr In Python, list indexing starts from 0.
my_list[0] → 'p'
my_list[1] → 'y'
So the output is y.
Correct answer: B (y)
English
































