0
How do I do to extract an specific word from a string paragraph?
Extraction
3 Respuestas
+ 4
In Python (seen through your profile)
First, you split the paragraph into a `list`, using space ' ' as delimiter. Then use subscript operator [] to specify a desired element index.
para = 'this is ubelievable, you gotta be kidding me'
word = para.split(' ')[3] # 'you'
print(word)
+ 1
In what programming language?