Join IDNLearn.com to access a wealth of knowledge and get your questions answered by experts. Our experts are available to provide accurate, comprehensive answers to help you make informed decisions about any topic or issue you encounter.
f = open("my_name.txt", "w")
f.write("Your name here")
f.close()
You just have to change Your name here to your actual name. I wrote my code in python 3.8. I hope this helps.