🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

Which Python method is used to convert 'neilit' into 'Neilit'?

'neilit' को 'Neilit' में convert करने के लिए कौन-सा Python method use किया जाता है?

A
upper()
B
lower()
C
capitalize()
D
title()
Explanation
  • upper() → Converts all letters to uppercase (NEILIT)
  • lower() → Converts all letters to lowercase (neilit)
  • capitalize() → Converts only the first letter to uppercase and the rest to lowercase (Neilit) ✅
  • title() → Converts the first letter of each word to uppercase (Neilit for a single word, but intended for multiple words)

Correct Answer: C) capitalize()

Latest Updates