Help Plz... Write a python program that copies one file to another. Have the program read the file names from the user.
Answers
Answered by
6
Answer:
code below
Explanation:
file = input("Enter file name")
def file_check:
f = open(file + '.txt','r')
data = f.read()
f.close()
data = data.split('\n')
file = []
for row in data:
file_check.append(list(row))
return file_check
Answered by
2
Hi sp
Hi sp here is ur answer
File = input("enter name")
def file_check:
f=open(file + '.txt',r)
data=f.read()
f.close( )
data = data.split('\n')
file = [ ]
file_check.append(list(row))
Hope this will help you...
⭐Mark as brainliest ⭐
Similar questions
Math,
5 months ago
Social Sciences,
5 months ago
Math,
10 months ago
Math,
10 months ago
Math,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago