I want to write some data in a csv, but I have already written something in a few lines below so at the time of writing because obviously they are going to be written below (THE LIMIT) so to speak and I want them to be written above.
Here I put an image to give you an idea:
And here is the code that I am using:
with open("priv/products.csv", 'a') as login:
login.write("," + (introduce_product))
login.write("," + (introduce_brand))
login.write("," + "$" + (introduce_price))
login.write("\n")
login.close()