Skip to content

Instantly share code, notes, and snippets.

@sosukeinu
Created January 29, 2013 16:30
Show Gist options
  • Save sosukeinu/4665571 to your computer and use it in GitHub Desktop.
Save sosukeinu/4665571 to your computer and use it in GitHub Desktop.
PYTHON comma-separated list of numbers
import sys
lownum = input("Please enter the low number: ")
highnum = input("Please enter the high number: ")
print ', '.join(str(i) for i in range(lownum,highnum + 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment