There is a sentence in the input. Print the tokens using the method that returns word and punctuation tokens.
Tip: Do not forget to import the module you need
There is a sentence in the input. Print the tokens using the method that returns word and punctuation tokens.
Tip: Do not forget to import the module you need
Sample Input 1:
If you want to be happy, learn programming!Sample Output 1:
['If', 'you', 'want', 'to', 'be', 'happy', ',', 'learn', 'programming', '!']Create a free account to access the full topic