Answered step by step
Verified Expert Solution
Question
1 Approved Answer
just the answrs Question 7 nooddHeroes [ heroes # ['superman', 'batman., 'aquaman for hero in heroes: if len(hero) % 2 : noOddHeroes.append (hero) print (nooddHeroes)
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 aboveStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started