<Hackerrank 문제풀이: 파이썬> Capitalize!
생각보다 간단했지만 매우 귀찮은 노가다 문제였다: #!/bin/python3 import math import os import random import re import sys # Complete the solve function below. def solve(s): p = re.compile('\w*') m = p.findall(s) for i in range(len(m)): m[i] = list(m[i]) if m[i] == []: continue else: m[i][0] = m[i][0].upper() rearranged_list = [] for j in m: rearranged_list.append(''.join(j)) del rearranged_list[-1] ne..