Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Heres the code with the missing functions addage and uniqueconsoles implemented according to the giv... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

How can emotions cause communication breakdown?

Answered: 1 week ago

Question

What are the attributes of a technical decision?

Answered: 1 week ago

Question

How do the two components of this theory work together?

Answered: 1 week ago

Question

Identify the steps involved in designing an experiment.

Answered: 1 week ago