Skip to content

Instantly share code, notes, and snippets.

@codeboy101
Created January 9, 2016 05:53
Show Gist options
  • Save codeboy101/6513363e70b67390fc4a to your computer and use it in GitHub Desktop.
Save codeboy101/6513363e70b67390fc4a to your computer and use it in GitHub Desktop.
my_num = '153'
new_num = [int(x) for x in my_num]
check_num = (new_num[0] * 100) + (new_num[1] * 10) + (new_num[2] * 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment