Created
February 2, 2019 15:37
-
-
Save mirrornerror/17079bace85e3cc8b660df7dfe94303e to your computer and use it in GitHub Desktop.
print end option
This file contains 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
for i in range(5): | |
print(i) | |
# output: | |
# 0 | |
# 1 | |
# 2 | |
# 3 | |
# 4 | |
# print end option | |
for i in range(5): | |
print(i, end=', ') | |
# output: | |
# 0, 1, 2, 3, 4, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment