Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set the default subtitles language in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Refactoring: Prepare Your Code to Get Help (Overview)

At some point in your Python journey, you’ll look to other programmers for help with a sticking point in your code. When that day comes, it’s important to make sure that you’re asking a clear question and that your code is accessible and executable.

If you can make it easier for people to help you out, then you’re more likely to get the answers that you need.

In this video course, you’ll learn how to:

  • Write a clear, concise question using how or why
  • Remove obstacles and visual clutter from your code
  • Improve your code by refactoring
  • Raise and catch exceptions within nested functions

You’ll get insight from two Real Python team members in this Code Conversation. To connect with fellow programmers and have your own code conversations, you can join the Real Python community.


Sample Code (.zip)

2.6 KB


Course Slides (.pdf)

9.6 MB

Become a Member to join the conversation.