write to file python2 code example Example: how to write something in python print("This is where you put the message you want to write")