Below is my code, when printing the second file i create, i get an indent. Don't see why. Since I'm learning any other comments on my simple code are wellcome, and will be taken gladly. Thanks!
from sys import argv
script, file_name = argv
file_object = open(file_name)
print(file_object.read())
file_object.close()
second_file_name = input("Enter the second file name: \r\n>> ")
second_file_object = open(second_file_name + 'txt', 'w+')
second_file_object.write(input("Now write to your file: \r\n>> "))
second_file_object.seek(0)
print("printing the second file object: \r\n", second_file_object.read())
# why is the file content indented when printed?
second_file_object.close()