Better Python Foundations assignments

Join a growing community of educators who are transforming the way they teach Python Foundations. Save time and improve learning outcomes by incorporating our full set of interactive lessons and mastery-based quizzes created by OpenClass CEO Alec Kretch.
What's the difference between a list and a set in Python?
Instructor solution
Learning resources
Instructor answered
Sets are unordered, unchangeable, and do not allow duplicate elements. The syntax to create a set is a_set = {"val_1", "val_2"}.

Lists are ordered, changeable, and allow duplicate elements. The syntax to create a list is a_lst = ["val_1", "val_2"].
You answered
Lists can have duplicate values

Trusted by educators at

Class Outline

  • 8
  • 43
  • 24
    mastery quizzes
  • 6
    adaptive reviews
Unit 0: Intro
  • Unit 0: Intro
  • Unit 1: Python Basics
  • Unit 2: Control Flow
  • Unit 3: Types
  • Unit 4: Iteration
  • Unit 5: Object-Oriented Programming (OOP)
  • Unit 6: Modules
  • Unit 7: Conclusion

What's wrong with punitive worksheets?

Punitive worksheets punish learners for missing questions, lack immediate feedback, and promote massed practice. It's time for better assignments.

Our assignments were designed to optimize learning.

Mastery-based reviews to guide study sessions...

Most learners don't know how to properly study, and those that do often don't know what to study. Our reviews walk learners through course material in a manner proven to optimize knowledge retention.
What are two different ways you can increment a variable a by 2?
Your response here...
Save answer

...which can include low-stakes coding practice.

The jump from learning coding concepts to applying them in projects can be steep. Our reviews support coding questions to supply learners with a low-stakes environment to master fundamental concepts.
Write a function to multiply two input parameters, a and b.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
def product_of_two(a, b):  # Your code here!

Mastery quizzes to turn assessments into learning experiences.

Our mastery quizzes provide immediate corrective feedback and re-quiz opportunities for learners to reduce stress, incentivize effort, and encourage learning.
In Python, how would you increment the variable x by -5?
  • A.
    x = x - 5
  • B.
    x -= 5
  • C.
    x += -5
  • D.
    All of the above

Lessons to organize your teaching resources.

Our lessons allow you to combine your teaching resources with questions in an easy-to-digest format to build engaging learning experiences.
if Statements in Python

Beloved by educators

Emily Carroll
“Every single week, students would spontaneously, unsolicited post in my discord channel ‘This OpenClass thing is great’, ‘I love this OpenClass thing’, ‘Can we have more OpenClass assignments?’ and if I haven’t prepared one for a week, there would be messages popping up after lecture, ‘Is there OpenClass this week?’, ‘When is it going to be available?’. My students had a great reaction to it.”
Emily Carroll
Assistant Professor - University of Arizona
Nick Suwyn
“Looking back two years ago when we started working with OpenClass, I couldn’t be happier that we went with OpenClass. The improvements that it led to our program and our student success rate is incredible.”
Nick Suwyn
CEO - Promineo Tech
Gus Hahn-Powell
“As educators, comprehensive review is something we all want to provide, but it can be difficult to deliver. OpenClass makes it easy — far easier than any other tool I’ve used. Feedback from undergraduates and graduates was overwhelmingly positive. Unsolicited, students repeatedly reached out to let us know how useful they found the review and mastery activities.”
Gus Hahn-Powell
Assistant Professor - University of Arizona
Dianne Patterson
“I was very impressed by OpenClass. I was impressed by the aesthetic of the interface—it was very beautiful to look at. I was impressed with the statistics that I got out of it afterwards—I could quickly look and see who'd finished, when they'd finished, and drill down and see details of what students had done—that was fantastic. I think it's a fantastic tool, and I think it fills in a niche that nothing else we have fills in.”
Dianne Patterson
Research Scientist - University of Arizona
Diheng Zhang
“The interface is attractive, it's user-friendly, and the instruction is very, very clear. I basically just spent like half an hour or an hour trying to learn how to build a class and I was able to do it. One very interesting thing I noticed is that not too many students noticed that they leave D2L, so I think that speaks to how well OpenClass is integrated to the D2L system.”
Diheng Zhang
Graduate Researcher - University of Arizona

All with powerful metrics to help you better understand your class.

Our detailed metrics outline what your learners do and don't understand, allowing you to make data-driven decisions to improve your class.

Integrating with the tools you already use

We're happy to host your entire class. But if you already have a preferred LMS, we can plug right into it.

Ready to incorporate our Python Foundations assignments into your class?