Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IS Is lily one of my favorite flowers? True Is orchids one of my favorite flowers? False Is rose one of my favorite flowers? False

image text in transcribed
image text in transcribed
IS Is lily one of my favorite flowers? True Is orchids one of my favorite flowers? False Is rose one of my favorite flowers? False missing Num Download this starter file: Missing Nums.py a Complete the function missingNum(). Note that the program will not run as is because the function is incomplete. Ti purpose of the function is to replace all instances of zero in the list with the word "missing? The function should take the list and return the list once it has been changed. Changing the list may require a for loop and if statements. You may even need to iterate by index INSTEAD of by value! Just sayin.... All the nums: 14.7,0, 10, 32, 0,51, 0, 89, 100) Replaced nums: (4.7. 'missing, 10, 32, "missing: 51, missing: 89.100] What to Turn In 1. Submit 3 .py files labeled FLastName_BookName.py, FLastName Flower Name.py, and Flastname_MissingNum.py with your code. 2. Submit images (photo or computer generated) of a stack traces of your final code labeled FlastName ListStackTrace.png for jpeg, pdf, etc.) #define list of nums allNums = [4, 7, o, 10, 32, 0, 51, 0, 89, 100) #def function that replaces zeros with 'missing' def missingNum(): #replace all zeros with 'missing' return print("All the nums: al lNums) updatedList = missingNum(allNums) print("Replaced nums: updatedList) MacBook Pro 20 F3 000 OOO F4 ! FS F6 F7 DI FB OD F9 Y F10 11

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

Why isnt choosing a legal entity a one-time event?

Answered: 1 week ago

Question

3. What changes should I be making?

Answered: 1 week ago

Question

2. Why?

Answered: 1 week ago