The output i receive is "none" while in the .txt file is already 3 given names and i suppose to add one more through input.
Add a new member: Solomon Right
None
Process finished with exit code 0
That is my code:
newUserMember = input("Add a new member: ")
file = open("/Users/nikitalutsai/Downloads/members.txt", 'r')
content = file.readlines()
file.close()
content.append(newUserMember + "\n")
file = open("/Users/nikitalutsai/Downloads/members.txt", 'w')
content = file.writelines(content)
print(content)