Code Monkey home page Code Monkey logo

timestables's Introduction

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.

timestables's People

Contributors

samthegitguy avatar

Watchers

 avatar

timestables's Issues

unexpected EOF while parsing

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.

Quits at second number in Windows 10 environment

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,

SamTheGitGuy

Resources and other information:

  • Only tested on Windows 10 as of writing
  • Currently only applies to blitz branch
  • Further testing on other versions is to be done

Checklist:

  • Test on Master branch
  • Test on other versions of Windows
  • Identify problem

Checks for number

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.

NameError: name Y is not defined

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:

  • change to str(input()) or raw_input()
  • git add
  • git commit
  • git push
  • whatever else is needed.

Latest code is in the repo.
@tjsfdc need your help if possible.
Got solutions? drop them in the comments below

Master branch gives Thats Incorrect at every question 2+

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.

SamTheGitGuy

Resources and Checklists:

Resources:

  • Only tested on Version 10.0.18362 Build 18362 of Windows

Checklist:

  • Test on other versions of Windows,

  • Identify problem and fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.