Question 1: (2 marks)
Write code to convert nationality adjectives like Canadian and Australian to the corresponding nouns Canada and Australia
Example:
Input:['Argentinian', 'Australian', 'Canadian']
Output:['Argentina', 'Australia', 'Canada']
Question 2: (2 marks)
Write a program to extract and print all the nouns present in the below text.Hint: using spacy package
Example:
Input:"James works at Microsoft. She lives in Manchester and likes to play the flute."
Output:James
Zoom
>
+ 100%
Close
<