When I use a write function in this code nothing happens, read works fine. Any reason why?
if userinp == ('save'):
save = open("save.txt",'r')
print(save.read())
save = open("save.txt",'a')
save.write("pop")
save.txt: test
output: test
desired output: pop
thank you for the downvotes :)