with open("/Users/georgios.kaiafas/Desktop/test_write.txt",'w',encoding = 'utf-8') as f:
    f.write("my first file using Python\n")
    f.write("This file has used Python scripting\n\n")
    f.write("and it contains just three lines of text.\n")

with open("/Users/georgios.kaiafas/Desktop/test_write.txt",'w',encoding = 'utf-8') as f:
    f.write("my first file using Python\n")
    f.write("This file has used Python scripting\n\n")
    f.write("and it contains just three lines of text.\n")
