Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following Python code snippet?
print(‘ab cd-ef’.title())

What will be the output of the following Python code snippet?
print(‘ab cd-ef’.title())
a) Ab cd-ef
b) Ab Cd-ef
c) Ab Cd-Ef
d) None of the mentioned

Answer: c
Explanation: The first letter of every word is capitalized. Special symbols terminate a word.

Join The Discussion