Question: s A file's name is read from input. The file is opened and shirt_file is assigned with the file object. Each line in shirt_file contains

s

A file's name is read from input. The file is opened and shirt_file is assigned with the file object. Each line in shirt_file contains a name and a color, representing a person's name and the color of the person's shirt. Complete the assignment of shirt_data by reading shirt_file's contents as a string. Click here for example v smu BW he data2.txt data3.txt shirt_file = open(input()) shirt_data = |''" Your code goes here '"" shirt_file.close() print(shirt_data)

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 Mathematics Questions!