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
1
ᵖʸᵗʰᵒⁿ ˢᵗʳⁱⁿᵍ ᵐᵉᵗʰᵒᵈˢ :-
✒ᶜᵒⁿᵛᵉʳᵗˢ ˢᵗʳⁱⁿᵍ ⁱⁿᵗᵒ ˡᵒʷᵉʳ ᶜᵃˢᵉ.
✒ʳᵉᵗᵘʳⁿˢ ᵃ ᶜᵉⁿᵗᵉʳᵉᵈ ˢᵗʳⁱⁿᵍˢ.
✒ʳᵉᵗᵘʳⁿˢ ᵗʰᵉ ⁿᵘᵐᵇᵉʳ ᵒᶠ ᵗⁱᵐᵉˢ ᵃ ˢᵖᵉᶜⁱᶠⁱᵉᵈ ᵛᵃˡᵘᵉ ᵒᶜᶜᵘʳˢ ⁱⁿ ᵃ ˢᵗʳⁱⁿᵍ.
✒ʳᵉᵗᵘʳⁿˢ ᵃⁿ ᵉⁿᶜᵒᵈᵉᵈ ᵛᵉʳˢⁱᵒⁿ ᵒᶠ ᵗʰᵉ ˢᵗʳⁱⁿᵍ.
Similar questions