Question: Create a file named csc 1 0 1 _ project _ yourname.py [ ' ankylosaurus ' , 'carnotaurus', 'spinosaurus', 'trex', ] Take the list above
Create a file named cscprojectyourname.py
ankylosaurus 'carnotaurus', 'spinosaurus', 'trex',
Take the list above and create the functions. Make sure to loop and don't just use if on the list.
Create a function called modifyanimalnameslist and uppercase the first letter of each word. And add underscore your initials. For example the above list should be modified to match Ankylosaurusae 'Carnotaurusae 'Spinosaurusae 'Trexae My initials are ae
Create a function called findreplacenamelist name that finds the word "Spinosaurusae 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
