Input:
['camellia', 'pendulum', 'petunias', 'begonia', 'dahlia', 'hostas', 'pelorism', 'paperwhite']
Desired Output:
a. ['camellia', 'dahlia']
b. ['paperwhite']
Question 2: (2 marks)
Write the slice expression that extracts the first three words of text.
Input:
text = 'She received the news of the discovery with equanimity'
Desired Output:
['She', 'received', 'the']
Question 3: (3 marks)
Write a program to extract the FPT University email addresses present in the text.
Input:
+ 100%
Zoom
Close