Q. What is the output of ‘python’.capitalize()?

A
Python
B
python
C
PYTHON
D
Error
Solution:

capitalize() returns ‘Python’, capitalizing the first letter only.

Entri Contact Image

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