how to write something in python

print("This is where you put the message you want to write")

Here is what the above code is Doing:
1. It’s creating a new file called “my_file.txt”
2. It’s opening the file in write mode
3. It’s writing the message “This is where you put the message you want to write” to the file
4. It’s closing the file