Skip to content

Instantly share code, notes, and snippets.

@bluebat
Last active September 21, 2022 11:25
Show Gist options
  • Save bluebat/c1843d91b7e97c7e508828c67a80658b to your computer and use it in GitHub Desktop.
Save bluebat/c1843d91b7e97c7e508828c67a80658b to your computer and use it in GitHub Desktop.
Math Fun
import random
s = list(range(1,10))
while s[0]/(s[1]*10+s[2])+s[3]/(s[4]*10+s[5])+s[6]/(s[7]*10+s[8]) != 1:
random.shuffle(s)
print(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment