Capitalize all words

Report a typo

Write a program that takes a string, capitalizes all words in it and then prints the result. Use the capwords function from the string module.

The string is already defined.

Sample Input 1:

a aaaa aaaaaaaa

Sample Output 1:

A Aaaa Aaaaaaaa
Write a program in Python 3
# place `import` statement at top of the program


# don't modify this code or the variable may not be available
input_string = input()

# use capwords() here
___

Create a free account to access the full topic