Write a program to
NYC1-funnynames.txt
into a list, by completing the provided user-defined functionSample Program Output:
Alma Frienzergon
Kent Belevit
Mitch Again
Oliver Stuffismisson
Sandi Shores
Sarah Bellum
Willie Pas-D'course
Yolanda Ismyland
In [ ]:
# Step 2: write function
# this function reads from "NYC-funnynames.txt" places the names in a list.
# program should return a list of names
def read_names():
names = []
#todo write code here
In [2]:
## Step 4: write entire program making sure to use read_names
read_names
function clarify the intent of the main program in step 4? Why or why not?Answer:
NYC-funnynames.txt
file in your lessons/09
folder. Open the file and add the name Euron Trouble
to the file, then save and close it. Re-run the program in step 4. Do you see the new name in the program output? Explain why or why not? Answer:
Reflect upon your experience completing this assignment. This should be a personal narrative, in your own voice, and cite specifics relevant to the activity as to help the grader understand how you arrived at the code you submitted. Things to consider touching upon: Elaborate on the process itself. Did your original problem analysis work as designed? How many iterations did you go through before you arrived at the solution? Where did you struggle along the way and how did you overcome it? What did you learn from completing the assignment? What do you need to work on to get better? What was most valuable and least valuable about this exercise? Do you have any suggestions for improvements?
To make a good reflection, you should journal your thoughts, questions and comments while you complete the exercise.
Keep your response to between 100 and 250 words.
--== Write Your Reflection Below Here ==--