Python String functions

Len Function Len function used to count character in string. mystring = “Hello World” print(len(mystring)) Output: 11 Lower function Lower function used to convert string in lower case. mystring = “Hello World” print(mystring lower()) Output: hello word   Upper function Upper  function used to convert string in upper case. mystring = “Hello World” print(mystring.upper()) Output: HELLO WORLD Find …

Python String functions Read More »