0

Help me to get this output in Python...

Input: this is my HOME Output:THIS is my HOME

8th Jul 2018, 3:27 AM
Ramya S
Ramya S - avatar
12 Answers
+ 1
What do you want to do? Uppercase the first word of each sentence?
8th Jul 2018, 3:52 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 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.
8th Jul 2018, 4:07 AM
Nikhil Dhama
Nikhil Dhama - avatar
+ 1
Well Thank you.. I will have a try..
8th Jul 2018, 4:17 AM
Ramya S
Ramya S - avatar
+ 1
Thank you so much.. I have got the output.. ✌
8th Jul 2018, 4:31 AM
Ramya S
Ramya S - avatar
0
this can be a way to do so.đŸ‘‡đŸ» https://code.sololearn.com/c2COM3l3uC68/?ref=app
8th Jul 2018, 3:54 AM
Nikhil Dhama
Nikhil Dhama - avatar
0
No just to swap the case of first word and print the result.
8th Jul 2018, 3:54 AM
Ramya S
Ramya S - avatar
0
S.Ramya you need to swap case or want to convert in uppercase?
8th Jul 2018, 3:57 AM
Nikhil Dhama
Nikhil Dhama - avatar
0
strval=input().split() print(strval[0].swapcase(),strval[1::])
8th Jul 2018, 3:58 AM
Ramya S
Ramya S - avatar
0
I want to swap the case I tried a code but the remaining words in a string has printed like a list...
8th Jul 2018, 3:59 AM
Ramya S
Ramya S - avatar
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.
8th Jul 2018, 4:00 AM
Nikhil Dhama
Nikhil Dhama - avatar
0
Ohh thanks ... But what should be added before .join function
8th Jul 2018, 4:03 AM
Ramya S
Ramya S - avatar
0
âœŒđŸ»
8th Jul 2018, 4:22 AM
Nikhil Dhama
Nikhil Dhama - avatar