Skip to content

Instantly share code, notes, and snippets.

@AFAgarap
Created June 27, 2016 13:54
Show Gist options
  • Save AFAgarap/c381e447750bea8d117309a69e80c2bf to your computer and use it in GitHub Desktop.
Save AFAgarap/c381e447750bea8d117309a69e80c2bf to your computer and use it in GitHub Desktop.
Mathematical equation producing repeated one's
n = '0'
for i in range(1, 11):
print('{} * 9 + {} = {}'.format(int(n), i, (int(n) * 9 + i)))
n += str(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment