I am new to Python.
How do we write this. My out put is not correct.
Programming challenge description:
Write a program which capitalizes the first letter of each word in a sentence.
Input: Your program should read lines from standard input. Each line has a sequence of words.
Output: Print the capitalized words.
Test 1
Test InputDownload Test 1 Input
Hello world
Expected Output:
Hello World
A Letter
import sys
# import numpy as np
# import pandas as pd
# from sklearn import ...
for line in sys.stdin:
print(line, end="")
line = "Hello world"