0
Help me to get this output in Python...
Input: this is my HOME Output:THIS is my HOME
12 Réponses
+ 1
What do you want to do? Uppercase the first word of each sentence?
+ 1
a string having empty space,
you can look in the code posted above.
list will join having this string in between every element of list.
try using any string in place of empty space, you'll get to know what it does.
+ 1
Well Thank you.. I will have a try..
+ 1
Thank you so much.. I have got the output.. ✌️
0
this can be a way to do so.👇🏻
https://code.sololearn.com/c2COM3l3uC68/?ref=app
0
No just to swap the case of first word and print the result.
0
S.Ramya you need to swap case or want to convert in uppercase?
0
strval=input().split()
print(strval[0].swapcase(),strval[1::])
0
I want to swap the case I tried a code but the remaining words in a string has printed like a list...
0
try to print like
' '.join(strval[1::])
this will work.
remaining words are printing as a list because by splitting the input, you had converted the string in a list.
0
Ohh thanks ... But what should be added before .join function
0
✌🏻