Guest User

Untitled

a guest
Feb 24th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. def wrap(string, max_width):
  2. while 0 < len(string) < 1000 and 0 < max_width < len(string):
  3. print (textwrap.fill(string,max_width))
  4.  
  5. while True:
  6. try:
  7. string = input()
  8. max_width = int(input())
  9. except EOFError:
  10. print("EOFError")
  11. break
  12.  
  13. Original exception was:
  14. Traceback (most recent call last):
  15. File "try2.py", line 8, in <module>
  16. max_width = int(input())
  17. ValueError: invalid literal for int() with base 10: ''
Add Comment
Please, Sign In to add comment