How do I avoid overwriting a file during writing?

When I write in a file with the below code statements, my old content gets removed and overwritten with new content. I want to maintain my content without overwriting.

my_file= open('content.txt','w')
my_file.write("She likes to do prograaming and coding")
my_file.close()

Can someone share the solution of how can I achieve it?