One of the basic attributes of any feed is its address. For that, we will use a function that calls the address out of feedinfo. The code looks like this:
def feeddata (self, feedname):
feedaddress = feedinfo[feedname]
return feedaddress
Here the function feeddata receives the variable feedname. It then accesses the dictionary feedinfo and asks for the the value of that key. The value is then assigned to feedaddress and passed back to the calling function.
If you need a refresher on functions, refer back to my tutorial.
