SoftwarePlus.ai

About Python+

How to use Python+

Every screen in Python+ also has its own help: press F1, or Help ▸ Help for this screen.

Getting started

  1. Open Python+. The first screen asks Who is learning?
  2. The first time, press New learner. Type your name as your instructor knows you, and choose a PIN of 4 to 6 digits.
  3. Python+ shows a recovery code. Write it down or print it, and keep it safe: it is the only way back in if you forget your PIN.
  4. The book opens. The list on the left has Start here and the ten modules. Open How Python+ works and then Your first program.

Next time, choose your name, type your PIN and press Open. Go ▸ Continue where I left off takes you back to the item you were on.

An item's tabs

Each topic in the book is an item, with these tabs:

  • Learn: the lesson.
  • Example: worked code for a question like the exercise's (never the same one). Run it, step through it and change it.
  • Exercise: your turn. Write your own code and check it, or answer practice questions. Many items have a second, optional stretch exercise under the first.
  • Laboratory (some items): work you do outside the book, such as installing Python on your own computer, or using Git and GitHub, with a checklist.
  • Review: the key points, key terms, flashcards and a self-test that counts for nothing.
  • Reference: the syntax and rules the item uses, on one page.
  • My notes: your own notes on the item, and Ask the AI (optional).

View ▸ Pop out this tab opens the tab you are on in a window that fills the screen. View ▸ Larger text makes the words bigger.

Running your code

Type Python in the editor and press ▶ Run (or F5, or Ctrl+Enter). Below the code you see what the program printed, any error, and any chart it drew. Running never counts against you, so run as often as you like.

  • Errors in plain words. When Python stops with an error, Python+ says what it means and which line to look at. Python's own message (the traceback) is underneath.
  • input(). If your program asks for input, type the answers in the Input box before you press Run, one answer per line.
  • Stop. A run has a time limit. If your program is still running, press ■ Stop. A loop that never ends is the usual reason: check that the while condition can become False.
  • Start again puts the exercise's starting code back. Pop out gives the code a window of its own.
  • File ▸ Save my code as saves your code as a .py file, to use in VS Code, Jupyter or Colab. File ▸ Open a Python file brings one in.

Checking your answer

On the Exercise tab, press ✓ Check my answer. Your code and the book's own answer run through the same tests. Some tests are hidden and use other values, so your code has to work in general, not only for the example shown.

Each test shows ✓ or ✗. A ✗ says what was expected and what your code gave. If you made a common mistake, Python+ names it: for example = where == was meant, range(1, n) one short, or a function that prints its result instead of returning it.

When every test passes, the item is complete. Stuck? Press Hint for the next hint. Hints are noted in your progress, but they never stop you passing. Check as often as you like.

Stepping through a run

Press ⏭ Step through to watch a program run one line at a time. The line about to run is marked. Beside the code you see each function call in progress with its own variables, and each variable as a name with an arrow to its value. When two names point to the same list, you see two arrows to one box.

Use ◀ Back and the step forward button, or the arrow keys. ⏮ First (Home) and Last ⏭ (End) jump to the start and the end, and the slider goes to any step. What the program has printed so far is shown too. Press Stop stepping to edit the code again.

A long run is recorded for its first 600 steps.

Module checks and your progress

Each module ends with a module check over what the module teaches. Go ▸ My progress shows the items you have finished, your module checks, what you have mastered, what is worth a review, and your time in the book.

Learners and progress files

Each learner's progress (finished items, answers, the code you wrote, your notes and your time) is kept in a file of its own on the computer, locked with your PIN. Several people can learn on one computer.

  • Leaving. Learner ▸ Switch learner, or closing Python+, saves your work and locks your file. Python+ also locks itself after 15 minutes without use.
  • Back up your progress. Lab computers can be changed or replaced. Use Learner ▸ Back up my progress to keep a copy on a USB drive or in a cloud folder of your own.
  • Another computer. On the start screen, Add learner from file brings your backup in. If you are already on that computer, the two copies are combined and nothing is lost.
  • Forgot your PIN? Choose your name and press Forgot my PIN. Your recovery code sets a new PIN. Nobody else can reset it: Python+ has no server.
  • What the PIN protects. It stops classmates opening each other's progress on a shared computer. It is a lock for the classroom, not a safe, so keep your backups somewhere only you use.
  • Instructors and lab staff can choose the folder for learners' files in Settings on the start screen.

Handing in a report

  1. Choose Go ▸ Hand in a report (or Ctrl+Shift+R).
  2. Choose a module check, or everything so far. My details for reports adds your student ID, course and class code to the cover. Only your name is required.
  3. Save the PDF report, and hand in that file as it is, the way your instructor asks (usually by uploading it to an assignment). Do not save it again in another program.

The report is signed, so your instructor can check it was not changed. The result line is a one-line summary of the report; copy it if your instructor asks for it. Send to my instructor starts an e-mail in your own e-mail program for you to attach the PDF and send; Python+ never sends anything itself.

Instructors: Check a report (on the start screen, or the File menu) opens a student's PDF and says whether it was changed. No sign-in is needed.

My notes and Ask the AI

Every item has a My notes tab for your own notes. They are kept in your progress file.

Ask the AI is optional. Python+ works fully without it. To use it, someone enters a key from an AI company (Anthropic, Google, OpenAI, Mistral or xAI), or one your instructor gives the class, in AI ▸ AI settings. Then type a question on the My notes tab and press Ask. Python+ sends your question and that item's lesson, never your name, progress, code or notes. You choose whether to keep the answer in your notes. The AI company charges the account whose key was entered, usually a cent or two a question; AI ▸ What the AI has cost shows the total.

The AI can be wrong. Module 7 teaches you to test AI-written code, and its exercises work without a key.

Reading aloud

Read aloud reads the page to you with the free Windows voices, which work offline. Reader voice and speed chooses the voice and how fast it reads. If a Google key is set up in AI settings, you can also choose a natural Google voice; Python+ says what it will cost before the first page.

Send feedback

Found a bug, or have a suggestion? Help ▸ Send feedback opens a page on softwareplus.ai in your browser with one box to write in. It goes to Dr. Ron Eaglin. Your e-mail address is optional; leave it if you would like an answer. You can also use the feedback page directly.

Help ▸ Check for a new version asks the Microsoft Store whether a newer Python+ is out, and offers to install it.

If something goes wrong

  • “The program was still running … so it was stopped.” Your code ran past the time limit. Look for a loop that never ends: a while whose condition never becomes False, or a counter that is never changed.
  • My code works when I run it, but Check says ✗. Read what the failed test expected. Hidden tests use other values: make sure your code uses its inputs and does not print a fixed answer. If the exercise asks for a function, it must return the result, not print it.
  • IndentationError. Python uses indentation to group lines. Use 4 spaces for each level; the editor puts them in for you when you press Enter after a colon.
  • No chart appears. Charts made with Matplotlib are shown below the output after the run ends. Check that your code draws something (for example plt.plot(…)) and that it ran without an error.
  • I forgot my PIN and lost my recovery code. The file cannot be opened. If you have a backup with a PIN you remember, use Add learner from file. Otherwise start again with New learner.
  • Python+ could not save my progress file. The learners' folder may be read-only on a lab computer. An instructor or lab staff can choose another folder in Settings on the start screen.
  • Ask the AI says there is no key, or the key is wrong. Open AI ▸ AI settings and enter or test the key. The book works without it.

Still stuck? Send feedback, or write to ron.eaglin@gmail.com.