Question: Question 1 1 The purpose of this code is to myFile = input ( ' Enter the name of your file : ' ) f

Question 11
The purpose of this code is to
myFile=input('Enter the name of your file : ')
f= open (myFile,'w')
n= int(input('How many?'))
print('Enter input: ')
for i in range (0,n) :
m= input()
f.write("%s
"%m)
f.close()
a.
to write to n files
b.
to write input to a file
C.
to count the letters in the name of the file
d.
to count the lines in a file
Question 1 1 The purpose of this code is to

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