Apr-20-2020, 01:46 PM
Thanks for the response. The pyinstaller command was in the original message. it is
.\pyinstaller --onefile --windowed tables.py
Sorry about the code - here it is included properly. This runs with no issues under python.
.\pyinstaller --onefile --windowed tables.py
Sorry about the code - here it is included properly. This runs with no issues under python.
import random print ("test your tables") choice = input("Want to choose a table? y/n: " ) if choice == "y": tablechoice = int ( input ("Which One? 1 to 12:")) trials = 1 while trials < 100: trials = trials + 1 if choice != "y": a = random.randint(1, 12) else: a = tablechoice b = random.randint(1,12) print( "what is", a, "times", b, "?") answer = int (input()) while 1==1: if answer == a * b: print ("well done") break else: print ("try again") print( "what is", a, "times", b, "?") answer = int (input())