Skip to content

Commit 1072efe

Browse files
committed
feat: add "Strings" solution
1 parent 0b2e1b7 commit 1072efe

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

capitalize.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/python3
2+
3+
import math
4+
import os
5+
import random
6+
import re
7+
import sys
8+
9+
10+
def solve(s):
11+
return " ".join(name.capitalize() for name in s.split(" "))
12+
13+
14+
if __name__ == "__main__":
15+
fptr = open(os.environ["OUTPUT_PATH"], "w")
16+
17+
s = input()
18+
19+
result = solve(s)
20+
21+
fptr.write(result + "\n")
22+
23+
fptr.close()

0 commit comments

Comments
 (0)