Advertisement
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.")
- else:
- break
- input_text += "\n" + cur_input_text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement