Last active
November 17, 2017 04:01
-
-
Save flakpaket/2b4a8933c7829f9b502d612adb9baf4d to your computer and use it in GitHub Desktop.
Revisions
-
flakpaket revised this gist
Nov 17, 2017 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,11 +4,12 @@ She's working on speeding up her times tables at school, so this creates a set of multiplication problems for her to solve. ''' import random, sys def makeProblems(num): x = 0 while x < num: y = random.randint(0,9) z = random.randint(0,9) print str(y) + " x " + str(z) + " = ____" x+=1 makeProblems(sys.argv[1]) -
flakpaket revised this gist
Nov 17, 2017 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,9 @@ #!/usr/bin/env python ''' Demo app to teach my daughter how we can make cool tools and apps with python. She's working on speeding up her times tables at school, so this creates a set of multiplication problems for her to solve. ''' import random def makeProblems(num): x = 0 -
flakpaket revised this gist
Nov 17, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ import random def makeProblems(num): x = 0 while x < num: -
flakpaket created this gist
Nov 17, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ def makeProblems(num): x = 0 while x < num: y = random.randint(0,9) z = random.randint(0,9) print str(y) + " x " + str(z) + " = ____" x+=1