We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Strings
- Capitalize!
- Discussions
Capitalize!
Capitalize!
Sort by
recency
|
2896 Discussions
|
Please Login in order to post a comment
def solve(s): s = ' '.join(i.capitalize() for i in s.split(' ')) return s
!/bin/python3
import math import os import random import re import sys
Complete the solve function below.
def solve(s): l = list(map(str.capitalize, s.split(sep = ' '))) result = '' for word in l: result += word + ' ' return result.removesuffix(' ') if name == 'main': fptr = open(os.environ['OUTPUT_PATH'], 'w')
Simple