CURRENT_YEAR = 2023 # The current year, treat as constant # -----------------------------------------+ # The missing functions go
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")
# -----------------------------------------+
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.
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill