Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

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.

Do's and Dont's: Python Programming Recommendations

Give Feedback

This lesson covers more recommendations provided by PEP8 to preserve consistency and remove ambiguity.

By the end of the lesson, you’ll know how to check:

  • If a boolean is True or False
  • Whether a list is empty
  • Whether or not a variable has a defined value
  • That arguments are not None
  • Suffixes and prefixes in lists

victorariasvanegas on Dec. 1, 2019

I don’t understand because you are using the return keyword instead of using the print function, thanks for the tutorial.

Joe Tatusko RP Team on Dec. 9, 2019

You’re welcome! Returning values can be useful as sometimes you don’t want to print the result to the console, and it also allows you to use the result of a function later on in your code. Let me know if that helps!

Alain Rouleau on Aug. 11, 2020

Really enjoyed this video. Good tips and advice, thanks.

Become a Member to join the conversation.