Tokenizing a particular sentence in the text

Report a typo

There is a text and also an integer in the input. You need to split the text into sentences. Use a number (the second line in the input) as an index for choosing a sentence from the list. Tokenize this sentence using the pattern "[A-z']+" and print it.

Tip: Do not forget to import the modules you need

Sample Input 1:

Meet the Greens! They've got a big house on the outskirts of Leeds. There are 15 rooms in it.
2

Sample Output 1:

['There', 'are', 'rooms', 'in', 'it']
Write a program in Python 3





___

Create a free account to access the full topic