Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # consequences-fanfic
- import os
- def clear():
- os.system("clear")
- endwords = ["end","fin",]
- lines = []
- line = ""
- while True:
- if len(lines) > 0:
- print("Previous line: ", lines[-1])
- line = input()
- lines.append(line)
- clear()
- if line not in endwords:
- # TODO make instructions more clear
- print("Pass to the next author, press ENTER when done.")
- input()
- clear()
- else:
- break
- clear()
- print("The full story: ")
- print("\n".join(lines))
- # TODO output to a file
Add Comment
Please, Sign In to add comment