I want to copy the code in file A that has for example. string = "Awesome"
and take it to file B that has length = len(string)
print(length).
Now this code is simple but the real one Im copying is longer so how can I successfully take all code to the other file.
Edit: I read what I was supposed to do wrong, So I have to make a function in this case mine is def copy(input, output):
that takes the file name the user inputs and copies it to the output file. Both input and output are .txt files.