Computer Science, asked by PRANAYCHOWDARY, 6 months ago

python 7 String methods examples​

Answers

Answered by ⲊⲧɑⲅⲊⲏɑᴅⲟᏇ
1

Python String Methods

Method Description

casefold() Converts string into lower case

center() Returns a centered string

count() Returns the number of times a specified value occurs in a string

encode() Returns an encoded version of the string

Answered by mehakShrgll
1

ᵖʸᵗʰᵒⁿ ˢᵗʳⁱⁿᵍ ᵐᵉᵗʰᵒᵈˢ :-

✒ᶜᵒⁿᵛᵉʳᵗˢ ˢᵗʳⁱⁿᵍ ⁱⁿᵗᵒ ˡᵒʷᵉʳ ᶜᵃˢᵉ.

✒ʳᵉᵗᵘʳⁿˢ ᵃ ᶜᵉⁿᵗᵉʳᵉᵈ ˢᵗʳⁱⁿᵍˢ.

✒ʳᵉᵗᵘʳⁿˢ ᵗʰᵉ ⁿᵘᵐᵇᵉʳ ᵒᶠ ᵗⁱᵐᵉˢ ᵃ ˢᵖᵉᶜⁱᶠⁱᵉᵈ ᵛᵃˡᵘᵉ ᵒᶜᶜᵘʳˢ ⁱⁿ ᵃ ˢᵗʳⁱⁿᵍ.

✒ʳᵉᵗᵘʳⁿˢ ᵃⁿ ᵉⁿᶜᵒᵈᵉᵈ ᵛᵉʳˢⁱᵒⁿ ᵒᶠ ᵗʰᵉ ˢᵗʳⁱⁿᵍ.

Similar questions