samthegitguy / timestables Goto Github PK
View Code? Open in Web Editor NEWTimestables quiz program. see readme.txt for more info.
License: The Unlicense
Timestables quiz program. see readme.txt for more info.
License: The Unlicense
timetable.py Required Programs. 1. Python Shell installation on linux: Use sudo apt-get install python3 Enter the command line and run python timetable.py installation on windows Go to python.org open the required py file via IDLE and press F5. 2. IDLE Installation on windows/linux same as above. Idle is not available on linux, use `nano timetable.py` instead. Abstract Timetables is a educational program designed to test your knowledge of 1 - 12 timetables. YOU ARE USING THE BLITZ COPY OF THIS PROGRAM. FOR THE STANDARD PROGRAM, DOWNLOAD THE MASTER BRANCH FROM https://github.com/samthegitguy/timestables. Instructions Enter the table you would like to use, and then the program will quiz you. Only quizzes one timetable at a time rather than random trivia but you can type Y at the end of a practice to retry.
asks for table to practice, gives space to press enter, and says:
Traceback: Most Recent call last:
blah blah blah
Syntax error: Unexpected EOF while parsing.
Noticing that the program is quitting immediately after progressing to 2 times x and as such is not working properly in Windows 10 environment with Python shell.
Works on Linux without any problems..
Note that currently this only applies to blitz branch, I will test the master branch on Windows 10 to confirm.
If you know anything about the reason of this, contributions are encouraged.
Thanks,
Resources and other information:
Checklist:
@tjsfdc you are requested to contribute to website/index.html after commit /e6b34810b339474b3de9d5011fef7266eaa59cc2 as I am assuming you already know how to code in HTML.
Styling the page would also be greatly appreciated.
Please close this issue once you have read and accepted this.
Thanks,
Earlier the script would error out if the answer is not a number, as it is not a raw_input()
, so it is only meant to take in numbers, booleans, etc and not strings. So I need to add couple lines of code to check if it is a number or string.
Apparently, only Y repeats the process and sets Y to true even though there is a elif statement at the end to change this.
Tasklist
Seems like the new feature with Would You Like To try Again? ( Traceback (most recent call last): File "timetable.py", line 25, in <module> theinput = input("Would you like to try again? (Y/N) File "<string>", line 1, in <module> NameError: Name Y is not defined
)
The variable theinput
is used to store the result of the input() function.
Seems like the input is taking it as a variable, perhaps I need to use raw_input()
or str(input())
perhaps.
Tasklist:
Latest code is in the repo.
@tjsfdc need your help if possible.
Got solutions? drop them in the comments below
This issue is most likely related to issue #10 as it only triggers at and after second input.
This branch is working perfectly on Linux so I will not be editing the master branch as it is and instead using the windows-edition branch instead.
This bug only appears on Linux.
Resources and Checklists:
Resources:
Checklist:
Test on other versions of Windows,
Identify problem and fix.
Similar to issue #5 as it is instead doing what it says in a title. Trying to fix it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.