Free Introduction to Coding study guide

This free Introduction to Coding study guide has 21 topics, 113 flashcards and 88 practice questions, starting with printable version, Intro and Hello, World. It suits middle school students (grades 6 to 8) and is built from the open textbook “Non-Programmer's Tutorial for Python 3” by Wikibooks contributors (Josh Cogliati and others) (CC BY-SA 4.0). It is free to use, and the study aids are generated automatically, so check important facts against your own textbook.

Study this course free

What you will study

21 topics, in the order of the textbook. Your own course may order them differently, so follow your syllabus.

Chapter 1: printable version

Key terms: Intro, Hello, World, Debugging, Defining Functions, Advanced Functions Example, Lists.

Chapter 2: Intro

When I type in code it will be formatted like this: Code: # Python is easy to learn print("Hello, World!") That's so it is easy to distinguish from the other text.

Chapter 3: Hello, World

Once you've read and mastered this chapter, you should know how to edit programs in a text editor or IDLE, save them to the hard disk, and run them once they have been saved.

Chapter 4: Who Goes There?

Chapter 5: Count to 10

Chapter 6: Decisions

Chapter 7: Debugging

By now if you have been messing around with the programs you have probably found that sometimes the program does something you didn't want it to do.

Key terms: the next line.

Chapter 8: Defining Functions

Programmers hate to repeat things -- that's what computers are for, after all! (Note also that finding the absolute value changed the value of the variable, which is why it is printing out 23, and not -23 in the output.)...

Chapter 9: Advanced Functions Example

Note: Some people find this section useful, and some find it confusing. 3 + 3 (addition) gives the same result as 3 * 2 (multiplication).

Key terms: happening overall, Recursion.

Chapter 10: Lists

Chapter 11: For Loops

Let's look at an example: Code: one_to_ten = range(1, 11) for count in one_to_ten: print(count) The output of this code looks as follows: The output looks awfully familiar but the program code looks different.

Chapter 12: Boolean Expressions

Each print statement prints a number and an expression. Notice how each expression ends up being either False or True.

Chapter 13: Dictionaries

Chapter 14: Using Modules

Chapter 15: More on Lists

Chapter 16: Revenge of the Strings

Chapter 17: File IO

Chapter 18: Dealing with the imperfect

Closing a file just means that the file is "cleaned up" and "released" by our program so that it can be used in another program.

Chapter 19: Recursion

In Python, a recursive function is a function which calls itself.

Chapter 20: Intro to Object Oriented Programming in Python 3

Chapter 21: Intro to Imported Libraries and other Functions

In this chapter, we will cover some functions from various imported libraries that are commonly asked about, or used in Python.

Try some

Real flashcards and practice questions from this study guide, with their answers.

Flashcard 1

What is Intro?

Answer: Installing and using Python – where to get help

Flashcard 2

What is File IO?

Answer: Reading from files and writing to files

Flashcard 3

In your own words: what does “class” mean?

Answer: A class definition is a group of statements which define an object's data attributes and methods.

Practice question 1

Which term matches this definition? “Installing and using Python – where to get help”

  • A. So?
  • B. Debugging
  • C. And then?
  • D. Intro

Answer: D. Intro

Intro: Installing and using Python – where to get help

Practice question 2

Which term matches this definition? “Since b has the value 1 the if statement is false, so the next line becomes rest = mult(a, b - 1).”

  • A. So now what happens?
  • B. So what is that value?
  • C. And what does this do?
  • D. What does this line do?

Answer: D. What does this line do?

What does this line do?: Since b has the value 1 the if statement is false, so the next line becomes rest = mult(a, b - 1).

Study this course free

Prerequisites and next steps

No prerequisite is listed for this course. Browse all free study guides to choose what to study next.

About this study pack

Attribution: Adapted from “Non-Programmer's Tutorial for Python 3” by Wikibooks contributors (Josh Cogliati and others) (https://en.wikibooks.org/wiki/Non-Programmer%27s_Tutorial_for_Python_3), CC BY-SA 4.0. Study aids (flashcards, quiz questions, summaries) were generated automatically from the text; they may contain errors.

Frequently asked questions

Is the Introduction to Coding study guide free?

Yes. StudyGrasp is always free: no paywall and no credit card. Students create a free account so that their progress is saved. Children under 13 should use it with a parent or guardian, who sets up or supervises the account.

What textbook is the Introduction to Coding study guide based on?

It is built from “Non-Programmer's Tutorial for Python 3” by Wikibooks contributors (Josh Cogliati and others), an open textbook licensed under CC BY-SA 4.0. StudyGrasp adapted it and is not affiliated with its authors or publisher.

How many practice questions does it have?

It has 88 practice questions and 113 flashcards across 21 topics. They are generated automatically from the textbook and marked Draft, so they can contain mistakes.

Can I use it offline or install it?

You can add StudyGrasp to your phone or computer. The app opens offline, and flashcards you have opened keep working without a connection. Offline copies are cleared when you sign out.

Study Introduction to Coding free

Ask questions that cite the textbook, practise with flashcards and quizzes, and keep your own notes private. Study this course free

StudyGrasp is not affiliated with the textbook publishers named here. Browse all courses · FAQ