+ 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.
8 Antworten
+ 6
2nd word means put the index of 2nd word in blank..
note: index starts from zero
+ 2
Thank you very much Jay
+ 2
words = x.
split
(' ')
res = words[
1
]
print
(res)
+ 1
words = x.split (' ')
res = words[1] # index starts from zero, And output the second word ==> 1
print (res)
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
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.
- 1
I'm not getting
res = words [ ] # what exact anwers to insert inside
Please solve it