Question: Create a file named csc 1 0 1 _ project _ yourname.py [ ' ankylosaurus ' , 'carnotaurus', 'spinosaurus', 'trex', ] Take the list above

Create a file named csc101_project_yourname.py
['ankylosaurus', 'carnotaurus', 'spinosaurus', 'trex', ]
Take the list above and create the 2 functions. Make sure to loop and don't just use if on the list.
1. Create a function called modify_animal_names(list) and uppercase the first letter of each word. And add underscore your initials. For example the above list should be modified to match ['Ankylosaurus_ae, 'Carnotaurus_ae', 'Spinosaurus_ae,' 'Trex_ae',]. My initials are ae.
2. Create a function called find_replace_name(list, name) that finds the word "Spinosaurus_ae" and replace it with your name. DO NOT use the replace function. Do this manually by looping (for loop).
All functions you were asked to create must take the list as an argument. These functions do not have a return value. Your functions will modify the list of items. You can always print the list to ensure your code modified the list in each function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!