Python Tutorials and Insights

Learn how to use Python for web development, data science, machine learning, and more! Read the latest Python tutorials and insights from top developers.

GET STARTED

Python tutorials, posts, and more

Spark & Python: Working with RDDs (I)

This tutorial introduces two different ways of getting data into the basic Spark data structure, RDD.

Adding Flow Control to Apache Pig using Python

So you like Pig but its cramping your style? Are you not sure what Pig is about? Are you keen to write some code to write code for you? If yes, then this is for you.
Adding Flow Control to Apache Pig using Python

Building Data Products with Python: A Wine Review Website using Django and Bootstrap

With this tutorial, we start a series of tutorials about how to build data products with Python. As a leitmotif we want to build a web-based wine reviews and recommendations website using Python technologies such as Django and Pandas. We have chosen to build a wine reviews and recommendations website, but the concepts and the technology stack...
Building Data Products with Python: A Wine Review Website using Django and Bootstrap

Simple Python Snake Game using Curses

Snake is a game where the player maneuvers a line which grows in length, with the line itself being a primary obstacle. Here's a quick tutorial on how to build a snake game with Python.
Simple Python Snake Game using Curses

A Proven Framework for Exporting Your Medium Followers

Ever wanted to export your medium follower list, but despair at how momentous the task is thanks to your large list? Fear not, here is a simple way to use export your Medium followers to a CSV file.
A Proven Framework for Exporting Your Medium Followers

Building Data Products with Python: Using Machine Learning to Provide Recommendations

This is the third part of our tutorial on how to build a web-based wine review and recommendation system using Python technologies such as Django, Pandas, SciPy, and Scikit-learn. In this part, you will learn how to use machine-learning to recommend users wines based on their preferences.
Building Data Products with Python: Using Machine Learning to Provide Recommendations

Python Quick Tip: Simple ThreadPool Parallelism

Parallelism isn’t always easy, but by breaking our code down into a form that can be applied over a map, you can easily adjust it to be run in parallel. Learn how through this quick tip!
Python Quick Tip: Simple ThreadPool Parallelism

10 Neat Python Tricks Beginners Should Know

Here are 10 potentially useful Python tricks beginners might not know.
10 Neat Python Tricks Beginners Should Know

How to make a Sandwich using Python Context Manager

Enter, Python context manager! They contain the magic sauce for our sandwich, which also abstracts resource management, and aids you in writing clean code.
How to make a Sandwich using Python Context Manager

Asynchronous Tasks using Celery with Django

With the help of Celery with Django, a user's experience can improve dramatically. Here's how to make asynchronous tasks work in your app or website!

Building a Chatbot using Telegram and Python (Part 2): Adding a SQLite Database Backend

In this tutorial, we'll add a SQLite database backend to our Telegram bot and allow it to remember information for specific users indefinitely. We'll build a simple To Do list that allows users to add new items or delete existing ones.
Building a Chatbot using Telegram and Python (Part 2): Adding a SQLite Database Backend

How to Run Python and Ruby on Heroku with Multiple Buildpacks

The aim of this article is to try to show how I handled a mentee's request and let you know about how to run multiple-buildpacks on Heroku.
How to Run Python and Ruby on Heroku with Multiple Buildpacks

How to Build a Python Media Player using LibVLC and GTK+

In this tutorial, we shall learn how to create a multimedia app in Python with the help of LibVLC and GTK+ which plays media when its starts. App users will also be able to control basic playback options.
How to Build a Python Media Player using LibVLC and GTK+

How to Send Mail in Python with Web2py

In this tutorial, we will learn how to implement Web2py’s send.mail() to set up or configure emails and finally show how to send emails to users.
How to Send Mail in Python with Web2py

Customizing your Navigation Drawer in Kivy & KivyMD

In this tutorial, we will learn how to customize a navigation drawer using Python, Kivy, and KivyMD.
Customizing your Navigation Drawer in Kivy & KivyMD

Some Python libraries and snippets

*There are a bunch of standard and third-party Python libraries that are useful, but rarely used by beginners and even intermediate users of Python. This post highlights a few of my favourite libraries...

Building your first web app using Python/Flask

Get started with the Python micro web-framework : Flask and see how to build a simple website using it.
Building your first web app using Python/Flask

Mixing Flight Tickets Data with Weather Data

This post provides a detailed description of how you can use python to create a map of flight tickets data and weather data.
Mixing Flight Tickets Data with Weather Data

Creating Custom Template Tags In Django Application

The power of custom template tags is that you can process any data and add it to any template regardless of the view executed. You can perform QuerySets or process any data to display results in your templates.
Creating Custom Template Tags In Django Application

Binary Search: Beyond Arrays

An introduction to solving equations — logarithmic, exponential, polynomial etc. - using binary search.
Binary Search: Beyond Arrays

Subscribe to our weekly newsletter

YOU MAY ALSO BE INTERESTED IN

Share ideas
with an editor
built for developers

LEARN MORE