Last active
March 3, 2020 21:17
-
-
Save katronai/25c62db85ad7db178bdb7adb1beeb87d to your computer and use it in GitHub Desktop.
String formatting and operations in Python 3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Print without line break | |
print('*', end='') | |
# Print without spaces between arguments | |
print('a', 'b', 'c', sep='') | |
# Flush the output in case of buffering problems | |
print('*', end='', flush=True) | |
# String formatting: https://docs.python.org/3/library/string.html#formatstrings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment