daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 49 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1.     # get input text
  2.     print("Input the text (. to exit): ")
  3.     input_text = ""
  4.     cur_input_text = ""
  5.     while True:
  6.         cur_input_text = input("> ")
  7.         if cur_input_text == ".":
  8.             if not input_text:
  9.                 print("ERROR: The text has to consist of more than 0 chars "
  10.                       "and can not be a single dot.")
  11.             else:
  12.                 break
  13.         input_text += "\n" + cur_input_text
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top