PyPractice
Need a hint? Click me!
PyPractice
PyPractice

Sign in

Check your inbox

We sent a confirmation link to . Open it to finish creating your account, then sign in.

Can't find it? Look in your junk or spam folder.

Already confirmed?
Bought a Licence?
Already have an account?
Announcements
Current streak
0 days
Weekly goal
0 / 5
problems solved this week
Activity, last 12 weeksLess More
Badges
Profile
Password
Use at least 8 characters.
Preferences
Appearance
Match your device or choose
Editor text size
For the code boxes
Reduce animation
Skips the welcome screen and confetti
Weekly goal
Problems to solve each week
5
Your data
Download your results as a spreadsheet file, or clear your practice history.

Contact support

Stuck, found a problem, or have an idea? Send us a message and an admin will reply here.

Your messages

Edit question

Revise Quiz 2

Practise in the same format as the real quiz: write full programs that read with input(), follow the programming restrictions, and pass every test. Some tests are hidden, so you cannot tune your code to the checks. You can check as many times as you like.
Quiz rules and programming restrictions
Rules
    Programming restrictions

      Study Quiz 3

      Practise in the same format as Quiz 3: full programs that use lists, dictionaries, files, command-line arguments and the os module, with the Quiz 3 rules and restrictions checked every time. Some tests are hidden. You can check as many times as you like.
      Quiz 3 rules and programming restrictions
      Rules
        Programming restrictions

          Code Editor

          An empty editor to try things out. Write any Python, type the input it should read (one line per input() call), then press Run. Your code is kept in this browser.
          Press Run to see what your program prints.

          Docs

          How PyPractice works, and what changed in each update.

          Learn BETA

          Test one labsheet at a time. Each quiz has four questions at the same level as Quiz 2: full programs that read with input(), marks, hidden tests and the Quiz 2 programming restrictions. Weeks 7 to 9 also allow the tools from those labs. You can check as many times as you like.
          Quiz rules and programming restrictions
          Rules
            Programming restrictions (Quiz 2)

              What you will learn

              Practise

              Ready for the real thing?

              Try a labsheet task in the practice editor.

              Class Chat

              The chat is closed right now

              Admin dashboard

              Admin tools. Pick one to open it.

              Question reports

              Support inbox

              Class Chat

              You decide when the chat is open. All times are Dublin time.
              Chat status
              Weekly schedule
              One-off sessions
              Messages
              Muted users
              Delete removes a message for everyone straight away. Muted users can read the chat but not post.

              Manage files

              Uploads are saved into your GitLab repo. The site updates 1–2 minutes later, once the pipeline finishes. Quizzes in Learn are written in labsheet_quizzes.py, so add a quiz there for each new labsheet.

              Files in this folder

              Class results

              Slides
              Download original

              Question bank

              Test mode

              Set up your test, then start. Your last results are on the right.

              Number of questions5
              110
              Difficulty
              Tries per question
              Time limit
              Questions from:
              Personal best
              –
              Recent tests

              A question counts as correct if any allowed try passes every check. Your score is shown at the end.

              Editor: Tab indents, Shift+Tab dedents.

              Test complete

              Welcome back.
              Tip: Make sure you have set your question bank

              Sample input
              
              
              Expected output
              
              
              Thanks. An admin will take a look.

              Editor: Tab indents, Shift+Tab dedents, Ctrl+/ comments a line, Esc then Tab leaves the editor.
              Get ready