Skip to content

Instantly share code, notes, and snippets.

@mirrornerror
Created February 2, 2019 15:37
Show Gist options
  • Save mirrornerror/17079bace85e3cc8b660df7dfe94303e to your computer and use it in GitHub Desktop.
Save mirrornerror/17079bace85e3cc8b660df7dfe94303e to your computer and use it in GitHub Desktop.
print end option
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