Can you help me how to use capitalize in this code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you help me how to use capitalize in this code

words=input() print(*sorted(set(words().lower().split())) i want the first letter to be capital example: input:length sorting words length output:Length words sorting

16th Jan 2021, 8:11 PM
a.m
6 Answers
+ 1
Hello this is a try just use join to join elements in the list and create a string from the capitalized one.https://code.sololearn.com/cHRZJrF5tq4a/?ref=app
16th Jan 2021, 9:02 PM
HBhZ_C
HBhZ_C - avatar
0
Abol dadash irani hasti?
16th Jan 2021, 9:06 PM
a.m
0
Dadash ye chand ta soal python hast yekhorde sakhte bizahmat mishe azat beporsam
16th Jan 2021, 9:13 PM
a.m
0
Age mishe ye rah ertebati dg ok koni mamnon misham qz ALLAH ham behtarina barat mikham
16th Jan 2021, 9:16 PM
a.m
0
Abol jan access behem dade nemishe
16th Jan 2021, 9:20 PM
a.m
0
@A_m_ir_rr
16th Jan 2021, 9:23 PM
a.m