Untitled
unknown
python
4 years ago
422 B
6
Indexable
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=' ')Editor is loading...