series-monads Monad Example: Sequencing API Calls A common requirement is to call various APIs in a sequence, any of which may fail. We see how to implement this requirement in a clean way using monads.
video Writing clean code with pytest We recently completed a small video demonstrating how to clean up an ugly set of if-else conditionals by refactoring it to use polymorphism instead. All the while we use pytest as a safety net to catch errors.
series-monads The Robot Kata - Part 2 In this exercise we are going to solve a variation of the robot kata. This version is called the Lost Robot kata.
conference Live Tweeting Sessions from EuroPython 2022 After PyCon US 2022, it's time for another big python conference: EuroPython. As before, we are live tweeting threads on the different sessions from the conference. All those tweets are collected on this page. Enjoy!
series-monads Introducing Monads in Functional Programming Monads have a reputation as being a very complicated aspect of functional programming. In this article we demystify them and learn how to apply monads in our code
pyscript Building Web Games with PyScript We just released a video showing how to use PyScript to build a Tic Tac Toe game from scratch in just 10 minutes.
monthly-roundup Playful Python May 2022 Round Up Hands-on exercises, PyScript, Functional Programming, PyCon US 2022
Photo by Thao Le Hoang on Unsplash programming How do you become better at programming? You get better at programming just like how you get better at anything else – by practicing. The question is: how to practice in an effective way?
functions Hands On: Higher Order Functions In this exercise we are going to get some hands on practice using higher order functions. We are going to have a form simulating a ticket booking UI. The user can enter the number of tickets to book and submit the form to book the tickets. Problem Statement There are three pieces of code that we will deal with in this exercise: * A Form object that accepts the number of tickets to book from the user * A book_tickets function that simulates a call to the backend with the number of tickets t
announcement Introducing Hand-on Exercises When working on an exercise, you get a coding editor in your web browser where you can type the python code for the exercise, run it and see the output. You don't need to have python or any other software installed on your computer.
series-wordcountproblem Hands On: The Word Count Problem We've integrated a python execution environment into the Playful Python site! Not only can you read code, you can now type it out and execute it, online, right here on the site 😎