Question: This is the first lab for the CS 1 6 5 6 - - Introduction to Data Science ( CS 2 0 5 6 )

This is the first lab for the CS 1656-- Introduction to Data Science (CS 2056) class, for the Spring 2024 semester.
Goal
The goal of this assignment is to familiarize you with the Python programming language.
What to do -- task.py
You are asked to implement parts #4, #5, #6 and #7 from the recitation handout. The program skeleton is already in place, you just need to implement the methods.
def part4(self)
For this part, you must use self.hours we defined in part 3, and store its data as a CSV file (hours.csv), with the fields name, day and time. You should look up the csv module and the writer() function in particular. The command to open the csv file for writing is already in the template, so, don't change it.
def part5(self)
For this part, you must open the CSV file created from part 4, read its contents, and write them in the file part5.txt.
def part6(self)
For this part, you must open the CSV file again, but this time you must parse it using csv.reader(), and write only the rows, one row at a time, in the file part6.txt. The rows have to be written as if they were being printed on the console. For example, if the csv has two rows, with one row having two fields, a string "One" and a string "Two", and the second row having the strings "Three" and "four", they have to be written as
["One", "Two"]["Three", "Four"]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!