Episode #31: Python Return Statement Best Practices and Working With the map() Function – The Real Python Podcast


Oct 16, 2020 46m

Christopher Bailey
David Amos

The Python return assertion is such a basic a part of writing capabilities. Is it doable you missed some finest practices when writing your individual return statements? This week on the present, David Amos returns with one other batch of PyCoder’s Weekly articles and initiatives. We additionally speak practical programming once more with an article on the Python map perform and processing iterables with out a loop.

We cowl a number of different articles and initiatives from the Python neighborhood together with, interactive information visualization with Pygal, all the things you must learn about namedtuples, PEP 638 syntactic macros, python for teenagers, the brand new Nvidia Jetson board, and a reinforcement studying mission named soccer.

Topics:

  • 00:00:00 – Introduction
  • 00:01:33 – Interactive Data Visualization in Python With Pygal
  • 00:06:40 – Python’s map(): Processing Iterables Without a Loop
  • 00:12:51 – Everything You Need to Know About Python’s NamedTuples
  • 00:19:46 – PEP 638: Syntactic Macros
  • 00:26:43 – Video Course Spotlight
  • 00:27:57 – The Python return Statement: Usage and Best Practices
  • 00:34:42 – Python for Kids
  • 00:38:03 – Build a Face Recognition System With the Nvidia Jetson Nano
  • 00:42:32 – soccer: Reinforcement Learning Environment
  • 00:45:51 – Thanks and goodbye

Show Links:

Interactive Data Visualization in Python With Pygal – Pygal is an missed library for creating interactive plots that may be became SVGs with an optimum decision for printing or displaying on webpages. Learn the way it works on this introductory tutorial.

Python’s map(): Processing Iterables Without a Loop – In this step-by-step tutorial, you’ll learn the way Python’s map() works and the best way to use it successfully in your packages. You’ll additionally discover ways to use checklist comprehension and generator expressions to interchange map() in a Pythonic and environment friendly method.

Everything You Need to Know About Python’s NamedTuples – Are you utilizing NamedTuple in your code? If you aren’t, study what they’re and why it’s best to think about using them on this complete tutorial.

PEP 638: Syntactic Macros – This model new PEP, which remains to be in draft mode, proposes including assist for syntactic macros to Python. Syntactic macros are compile-time capabilities that reach the language’s syntax with out including any new complexity to the language as an entire.

The Python return Statement: Usage and Best Practices – In this step-by-step tutorial, you’ll discover ways to use the Python return assertion when writing capabilities. Additionally, you’ll cowl some good programming practices associated to the usage of return. With this information, you’ll be capable to write readable, sturdy, and maintainable capabilities in Python.

Python for Kids – In this ten half sequence, senior software program engineer Kevin Thomas presents a kid-friendly complete Python growth tutorial using a micro:bit growth board. The GitHub repo comprises the entire pattern code in addition to hyperlinks to every tutorial within the sequence on LinkedIn. The first seven components are printed and the final three are coming quickly!

Projects:

Build a Face Recognition System With the Nvidia Jetson Nano 2GB and Python – The Nvidia Jetson Nano is a single board laptop much like a Raspberry Pi. The Jetson Nano actually packs a punch, nevertheless, because of its onboard Nvidia Maxwell GPU.

football: Reinforcement Learning Environment Where Agents Learn to Play Football

Additional Links:


Tweet
Share
Email

Level Up Your Python Skills With These Courses:

« Browse All Episodes

LEAVE A REPLY

Please enter your comment!
Please enter your name here