Guest User

Untitled

a guest
Jan 23rd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. # consequences-fanfic
  2. import os
  3.  
  4. def clear():
  5. os.system("clear")
  6.  
  7. endwords = ["end","fin",]
  8. lines = []
  9. line = ""
  10. while True:
  11. if len(lines) > 0:
  12. print("Previous line: ", lines[-1])
  13. line = input()
  14. lines.append(line)
  15. clear()
  16. if line not in endwords:
  17. # TODO make instructions more clear
  18. print("Pass to the next author, press ENTER when done.")
  19. input()
  20. clear()
  21. else:
  22. break
  23.  
  24. clear()
  25. print("The full story: ")
  26. print("\n".join(lines))
  27. # TODO output to a file
Add Comment
Please, Sign In to add comment