8.6 String Methods
Python has a set of built-in methods that you can use on strings. Note: All string methods returns new values. They do not change the original string. Example Upper case the first letter in this sentence:txt = “hello, and welcome to my world.”x = txt.capitalize()print (x) Output:Hello, and welcome to my world. Method Syntax Description capitalize() string.capitalize() Converts… Read More »