Please help me complete thefussiest eater function as well as the most delicious function!
All data needed is here:https://www.mediafire.com/folder/qn5fao1hzlxid/Definitions_and_Sets_Data
thank you so much in advance !!
This is the code i already have for the other functions(indentation may be messed up from copy paste):
import sys
def read_food_file(filename):
try:
file=open(filename)
except:
return {}
data={}
for line in file:
fields=line.strip().split(‘,’)
data[fields[0]]=fields[1:]
return data
def dump_data(eat_data):
#print(“– dump_data() not yet completed –“)
for i in sorted(eat_data):
data=sorted(eat_data[i])
print(i,’:’,’, ‘.join(data))
def compute_only_eaters(life):
#defining an empty list
eaters=[]
#looping through each key in dictionary
for i in life:
#assuming current creature is an eater only
is_eater_only
PayPal Gateway not configured
PayPal Gateway not configured