Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. # Inserts an arbitrary number of spaces. The default is 4.
  2. # Useful for indenting paragraphs in descs, etc.
  3. def space(text, *args, **kwargs):
  4.     length = abs(int(text)) if text else 4
  5.     fill = args[0] if args else ' '
  6.     return fill[0] if len(fill) > 1 else fill * length
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement