Code is now a funtion
This commit is contained in:
parent
bbd35358e4
commit
85626bd795
|
@ -1,3 +1,5 @@
|
|||
def get_vect():
|
||||
|
||||
import yaml
|
||||
|
||||
rawDat = open('rss_univ.txt', 'r')
|
||||
|
@ -22,6 +24,10 @@ for d in strDat:
|
|||
|
||||
del strDat
|
||||
|
||||
return impDat
|
||||
|
||||
|
||||
|
||||
# this section of the code show how to extract relevant data from the dictionaries
|
||||
"""
|
||||
print(dic['entries'][0]['title'])
|
||||
|
|
Loading…
Reference in New Issue