Q. How do you access the first character of ‘Python’?

A
text(0)
B
text[0]
C
text{0}
D
text.0
Solution:

text[0] accesses the first character ‘P’ using indexing.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!