Untitled
unknown
plain_text
3 years ago
422 B
1
Indexable
Never
import sys arr = [] current_string = '' newLine = True for line in sys.stdin: if line == " ": arr.append(current_string) current_string = '' newLine = True else: if newLine: current_string = current_string + line.lower() newLine = False else: current_string = current_string + line[0].upper() + line[1:].lower() arr.append(current_string) for ele in arr: print(ele, end=' ')