Python 3 – String capitalize() Method
Python 3 – String capitalize() Method It returns a copy of the string with only the first character capitalized. Syntax Below is the syntax of the capitalize() method – str.capitalize() Parameters NA Return Value String Example #!/usr/bin/python3 str = "this…