Computer Science, asked by ashreya1906, 4 months ago

Write a program in python that capitalize each letter in string ​

Answers

Answered by ElskerElvishpy
1

Answer:

string = "Hello brother"

new_str = ""

for char in string:

new_str +=  char.upper()

print( new_str)

Explanation:

As your string is iterable object.. for loop can be used and upper() method is used to capilalize a character.

Similar questions