Comment your answers below! 👇

Python_Dv's tweet image. Comment your answers below! 👇

Answer: A) Hello world › capitalize() = FIRST char uppercase, rest lowercase › "hello world" goes "Hello world" (only 'h' capitalized) For beginners — don't confuse these: › .capitalize() = "Hello world" (first only) › .title() = "Hello World" (each word)


Stream, call, game, and work in even the most remote locations. Order online in minutes


The correct answer is B) Hello world. The capitalize() method in Python returns a copy of the string with its first character capitalized and the rest of the characters in lowercase. In the given code, the variable a is assigned the string "hello world".


B capitalize method make the first character have upper case and the rest lower case.


(B.) Hello World


@grok what the answer ?


Can you beat the average IQ (98)? Take the test now and find out!


Option: C is correct


It should be c, otherwise method name is wrong


Start your journey in simulated trading with FTMO, backed by 10 years of experience.


Mind the Gap on the Capitalize-Line! 🍹

mardernasenhaar's tweet image. Mind the Gap on the Capitalize-Line!
🍹

B) Hello world. well: upper() means all uppercase(like, C) lower() means all lowercase capitalize() means very first letter of entire string.(like, B) title() means all first letter in the string.(like, A)


B. Hello world. The capitalize() method is used to appropriately capitalize a sentence as supposed just as we have in the English language whereby the first letter of a word or sentence starts with a capital letter. That's exactly what a.capitalize() did with the variable "a".


Alternative B. Will Upper case only the first character of the str, not each word in it (title).


B Hello world


I'll say HELLO WORLD


United States Trends
Loading...

Something went wrong.


Something went wrong.