So i need to append to a file in python. This is a random command line input
Example 1:
file1 This is a sentence.
How do i make it so it "This is a sentence" would be appended to file1 not just "This"
Example 2:
file2 A sentence
How do i make it so it "A sentence" would be appended to file2 not just "A"
This is what i have so far. And any random sentence could be appended to the files
with open(input[1],'a') as fileA:
fileA.write(input[2])