just the answrs Question 7 nooddHeroes [ heroes # [\'superman\', \'batman., \'aq
ID: 3698817 • Letter: J
Question
just the answrs
Question 7 nooddHeroes [ heroes # ['superman', 'batman., 'aquaman for hero in heroes: if len(hero) % 2 : noOddHeroes.append (hero) print (nooddHeroes) 6'superman', 'batman', 'aquaman'] c) I'superman'] d) I'superman', batman'] e) none of the above Question 8 wordList candyOnStick.split('i') for word in wordlist o wor D:candyonstick 'lolli lolli lolli lollipop lollipop if word not in d: else: 2 d[word]+1 print(len(d)) lol) 3 b) 2 c) 3 d) 4 e) none of the above opo Question 9 def oldMcDonald(farm): result for animal in farm if animal[0] in farm[animal]: result += 1 return result A farm('cow': 'moo', 'duck': 'quack', "cricket': 'chirp') print (oldMcDonald(farm)) a) 3 b) e) none of the aboveExplanation / Answer
7 Answer) e) none of the above
Explanation:- It will print the following
['superman','aquaman']
8 Answer) b) 2
9 Answer) b) 0
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.