Question: CURRENT_YEAR = 2023 # The current year, treat as constant # -----------------------------------------+ # The missing functions go here. # -----------------------------------------+ def main(): add_age(video_games.csv, enhanced_video_games.csv) unique_consoles(video_games.csv)

CURRENT_YEAR = 2023 # The current year, treat as constant

# -----------------------------------------+

# The missing functions go here.

# -----------------------------------------+

def main():

add_age("video_games.csv", "enhanced_video_games.csv") unique_consoles("video_games.csv")

# -----------------------------------------+

main() Write a function named add_age that reads a csv file identified by the value of the first parameter ("video_games.csv" in the supplied code) and creates a new file identified by the value of the second parameter ("enhanced_video_games.csv" in the supplied code). In the new file, insert a second column with the label Age in Years that shows how old each video game is. Do the calculation using the CURRENT_YEAR constant that is provided with the starting code. Write a function named unique_consoles that reads a csv file identified by the value of the parameter ("video_games.csv" in the supplied code) and prints a numbered, alphabetically ordered list of the unique consoles that appear in the file. Match the formatting in this sample.

If the unique_consoles function is correct, the first unique console printed will be 1. Nintendo DS.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres the code with the missing functions addage and uniqueconsoles implemented according to the giv... View full answer

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!