Q. What is the output of ‘PYTHON’.lower()?

A
python
B
PYTHON
C
PyThOn
D
Error
Solution:

lower() converts all characters to lowercase, resulting in ‘python’.

Entri Contact Image

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