Skip to content

Instantly share code, notes, and snippets.

@tanmay-dev-03
Last active June 25, 2021 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanmay-dev-03/d0d8c25156a61cab8d8b4109f211dbdb to your computer and use it in GitHub Desktop.
Save tanmay-dev-03/d0d8c25156a61cab8d8b4109f211dbdb to your computer and use it in GitHub Desktop.
import os
terminal_size = os.get_terminal_size()

print("-"*terminal_size.columns)
print("Hello There!".center(terminal_size.columns))
print("-"*terminal_size.columns)

print("\n"*2)
print("Content with different fill".center(terminal_size.columns,"#"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment