Initialize the citation list below in Python : citation=["Parking:112","Speeding:234","Crash:234"] 1. Input the user to enter citation name. 2. Create for loop that iterates through the list. 3....


Initialize the citation list below in
Python:


citation=["Parking:112","Speeding:234","Crash:234"]


1.  Input the user to enter citation name.


2.  Create for loop that iterates through the list.


3.  Separate each citation and its corresponding number by splitting ":", the delimeter.
 Keep in mind, citations can be added to the list.


4.  If the citation is in the list, print the corresponding citation number.


5.  If the citation is not on the list, print that the citation is not found.



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here