Code is now a funtion

This commit is contained in:
Eddie 2017-10-30 10:20:44 -06:00
parent bbd35358e4
commit 85626bd795
1 changed files with 20 additions and 14 deletions

View File

@ -1,3 +1,5 @@
def get_vect():
import yaml import yaml
rawDat = open('rss_univ.txt', 'r') rawDat = open('rss_univ.txt', 'r')
@ -22,6 +24,10 @@ for d in strDat:
del strDat del strDat
return impDat
# this section of the code show how to extract relevant data from the dictionaries # this section of the code show how to extract relevant data from the dictionaries
""" """
print(dic['entries'][0]['title']) print(dic['entries'][0]['title'])