Skip to content

Instantly share code, notes, and snippets.

@savolla
Last active February 28, 2017 00:25
Show Gist options
  • Save savolla/47711aeaa9bf07d379ce104c842570cd to your computer and use it in GitHub Desktop.
Save savolla/47711aeaa9bf07d379ce104c842570cd to your computer and use it in GitHub Desktop.
I wanted to greate pi digit generator but I failed......... I tryed to divide 22/7 but getting same number every time..
b = 10
while True:
a = b%7
if b > 7:
b = int(str(a) + str(0))
c = b//7
else:
c = b//7
print(c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment