Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. Create an empty dictionary
  2. Loop through each sentence:
  3.     - place first word of each sentence into a dictionary making that first word a key
  4.     - look for the phrase "is connected to"
  5.         - place all the words after that phrase into the dictionary as values for the key
  6.     - look for the phrase "likes to play
  7.         - 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