Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Create an empty dictionary
- Loop through each sentence:
- - place first word of each sentence into a dictionary making that first word a key
- - look for the phrase "is connected to"
- - place all the words after that phrase into the dictionary as values for the key
- - look for the phrase "likes to play
- - place all the words after that phrase into the dictionary as values for the key
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement