fork download
  1. #!/usr/bin/env python
  2.  
  3. while 1:
  4. msg = raw_input("enter your message:").strip()
  5. if len(msg) > 0:
  6. break
  7.  
  8. print "thank you"
  9.  
  10. with open("messagesbox", "w") as myfile:
  11. myfile.write(msg)
  12.  
Runtime error #stdin #stdout 0.09s 10904KB
stdin
Standard input is empty
stdout
enter your message: