Automate Cybersecurity Tasks with Python | Weekly challenge 4 Quiz |
The purpose of the following code is to search a list. Run this code, analyze its output, and then debug it. (If you want to undo your changes to the code, you can click the Reset button.)
def search_list(username): for item in username: print(item) search_list(["elarson", "bmoreno", "tshah"])
What is the error related to?
- A missing colon (:)
- A misspelled variable
- A missing quotation mark (“)
- A missing comma (,)