a guest Dec 7th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # get input text
- print("Input the text (. to exit): ")
- input_text = ""
- cur_input_text = ""
- while True:
- cur_input_text = input("> ")
- if cur_input_text == ".":
- if not input_text:
- print("ERROR: The text has to consist of more than 0 chars "
- "and can not be a single dot.")
- input_text += "\n" + cur_input_text
RAW Paste Data