+ 2

Fill in the blanks to output the second word of the given string 'x'.

Good day Awesome people, Please assist on this below, i have tried to fill in different possible answers but am not winning. words = x . split (' ') res = words [ ] #this is were i got stuck print (res) Thank you.

28th Sep 2021, 1:05 PM
ntombizodwa
8 Answers
+ 6
2nd word means put the index of 2nd word in blank.. note: index starts from zero
28th Sep 2021, 1:08 PM
Jayakrishna 🇼🇳
+ 2
Thank you very much Jay
28th Sep 2021, 2:12 PM
ntombizodwa
+ 2
words = x. split (' ') res = words[ 1 ] print (res)
10th Jan 2022, 5:29 PM
Halima Dahani
+ 1
words = x.split (' ') res = words[1] # index starts from zero, And output the second word ==> 1 print (res)
18th Mar 2023, 8:52 AM
Mohammad Dagher
Mohammad Dagher - avatar
0
Fill in the blanks to output the second word of the given string 'x'. words = x.split(' ') #used split function res = words[1] #output the second word of the given string 'x' print(res)#print the statement
15th Oct 2022, 7:01 AM
Kavyasree Merugu
0
Fill in the blanks to output the second word of the given string 'x'. words = x.split(' ') res = words[1] print(res) Still stuck here on compiler it always gives "x is not defined" and on quiz it does incorrect the answer.
18th Nov 2022, 10:11 AM
Awais Ahmad
Awais Ahmad - avatar
- 1
I'm not getting res = words [ ] # what exact anwers to insert inside Please solve it
7th Jan 2022, 6:52 AM
Mallavelli Satya Surya Shanmuka Venkat