short note on i) capitalize ii) swapcase
Answers
Answer:
(i) capitalize
Capitalization is an accounting method in which a cost is included in the value of an asset and expensed over the useful life of that asset, rather than being expensed in the period the cost was originally incurred.
(ii) swapcase
Python String swapcase() In Python, String swapcase() is an inbuilt method which is used for string handling. ... This method converts the string which is in Uppercase into Lowercase case and vice -versa. Suppose a string is a="ABC" is given and if swapcase() method is applied on to it then result will be abc.
(I) CAPITALIZE : Capitalize is used when you're describing the first letter of a word or a single letter. For example, the first letter in this sentence is capitalized. Uppercase is used to describe a word with every letter being capitalized. For example, the acronym CPU is in uppercase.
(II) SWAPCASE : Python String swapcase() In Python, String swapcase() is an inbuilt method which is used for string handling. ... This method converts the string which is in Uppercase into Lowercase case and vice -versa. Suppose a string is a="ABC" is given and if swapcase() method is applied on to it then result will be abc.