Python Projects – Real Python

All project-based Python tutorials on Real Python. A common question by Python beginners and those at an intermediate skill-level is "Which Python projects should I work on to gain practical experience?" With this list of Python projects (including full source code) you'll gain practical coding skills, one step at a time.

fridaynightfunkin.ninja

View More ...

Write Pythonic and Clean Code With namedtuple – Real Python

Say your company has an old database application, written in Python, to manage the data about the passengers that travel with the company. You’re asked to update the system, and you start creating named tuples to store the data you read from the database.

realpython.com/python-namedtuple/

View More ...

Working With Files in Python – Real Python

The built-in os module has a number of useful functions that can be used to list directory contents and filter the results. To get a list of all the files and folders in a particular directory in the filesystem, use os.listdir() in legacy versions of Python or os.scandir() in Python 3.x.os.scandir() is the preferred method to use if you also want to get file and directory properties such as

realpython.com/working-with-files-in-python/

View More ...

Git Checkout and Intro to Branches – Real Python

00:01 You’re going to like this. Git has another cool feature. It can travel forward and backwards in time. While we can’t quite go back and see a T-Rex, you can move forwards and backwards in the timeline of your project.. 00:14 This is done with a command called checkout.In this module, you’re going to learn a couple of new and important terms named HEAD and branch, so let’s hop into

realpython.com/lessons/git-checkout-and-intro-branches/

View More ...

Common Python Data Structures (Guide) – Real Python

Dictionaries, Maps, and Hash Tables. In Python, dictionaries (or dicts for short) are a central data structure. Dicts store an arbitrary number of objects, each identified by a unique dictionary key.. Dictionaries are also often called maps, hashmaps, lookup tables, or associative arrays.They allow for the efficient lookup, insertion, and deletion of any object associated with a given key.

realpython.com/python-data-structures/

View More ...

The Python heapq Module: Using Heaps and Priority Queues

The Python heapq module is part of the standard library. It implements all the low-level heap operations as well as some high-level common uses for heaps. A priority queue is a powerful tool that can solve problems as varied as writing an email scheduler, finding the shortest path on a map, or merging log files.

realpython.com/python-heapq-module/

View More ...

Build a Platform Game in Python With Arcade – Real Python

For many video game players, the lure of writing games is a prime reason to learn computer programming. However, building a 2D platform game such as Lode Runner, Pitfall!, or Super Mario Bros. without proper tools or guidance can leave you frustrated. Fortunately, the Python arcade library makes creating a 2D game in Python accessible for many programmers!

realpython.com/platformer-python-arcade/

View More ...

Discover Flask, Part 1 – Setting Up a Static Site – Real

Welcome to the Realp Python Discover Flask series …. Series Overview. Visit discoverflask.com for the series summary—links to blog posts and videos.. Flask is a micro web framework powered by Python. It’s API is fairly small, making it easy to learn and simple to use. But don’t let this fool you, as it’s powerful enough to support enterprise-level applications handling large amounts

realpython.com/introduction-to-flask-part-1-setting-up-a-static-site/

View More ...

Build an Asteroids Game With Python and Pygame – Real Python

Step 2: Input Handling. At this point, you have the main loop of the game, ready to be filled with logic. At the end of this step, you’ll also have a scaffolding in place to start plugging in user controls. Most input processing in Pygame happens within an event loop.

realpython.com/asteroids-game-python/

View More ...

Python News: What's New From May 2021

Moving PyCon US online made the conference accessible to more Pythonistas around the globe. No longer burdened by travel and accommodation expenses, Python enthusiasts could join PyCon from the comfort of their own homes for just the price of admission. If you missed PyCon US 2021, you’ll soon be able to watch the talks on YouTube. The videos

realpython.com/python-news-may-2021/

View More ...

The k-Nearest Neighbors (kNN) Algorithm in

In this tutorial, you’ll get a thorough introduction to the k-Nearest Neighbors (kNN) algorithm in Python. The kNN algorithm is one of the most famous machine learning algorithms and an absolute must-have in your machine learning toolbox. Python is the go-to programming language for machine learning, so what better way to discover kNN than with Python’s famous packages NumPy …

realpython.com/knn-python/

View More ...

Learning Progress Workbook (PDF) – Real Python

Managing Python DependenciesDan Bader. Use this printable workbook to track your learning progress as you move through the course. Each page in the workbook is dedicated to a single lesson in the course. You can mark lessons and modules as completed (☐ → ☑) and take your learning notes in the blank space on each page.

realpython.com/lessons/mpd-learning-progress-workbook-pdf/

View More ...

K-Means Clustering in Python: A Practical Guide – Real Python

The k-means clustering method is an unsupervised machine learning technique used to identify clusters of data objects in a dataset. There are many different types of clustering methods, but k-means is one of the oldest and most approachable.These traits make implementing k-means clustering in Python reasonably straightforward, even for novice programmers and data scientists.

realpython.com/k-means-clustering-python/

View More ...

Arcade: A Primer on the Python Game Framework – Real Python

Imagine an object moving in space at 60 kilometers per minute. You can calculate how far the object will travel in any length of time by multiplying that time by the object’s speed: The object moves 120 kilometers in 2 minutes and 30 kilometers in half a minute.

realpython.com/arcade-python-game-framework/

View More ...

Refactoring Python Applications for Simplicity – Real Python

If you needed to travel from the Aeroporto (airport) to sample the food in the district of Belém, then it’s a more complicated journey. You would have to change trains at Alameda and Cais do Sodré: Image: Metro Lisboa. This trip has a cyclomatic complexity of 3, because you take 3 trains.

realpython.com/python-refactoring/

View More ...

API Integration in Python – Real Python

The following is a guest post by Aaron Maxwell, author of Livecoding a RESTful API Server.. How to Make Friends and Influence APIs. More and more, we’re all writing code that works with remote APIs.Your magnificent new app gets a list of your customer’s friends, or fetches the coordinates of nearby late-night burrito joints, or starts up a cloud server, or charges a credit card…

realpython.com/api-integration-in-python/

View More ...

How to Work With a PDF in Python – Real Python

The Portable Document Format, or PDF, is a file format that can be used to present and exchange documents reliably across operating systems. While the PDF was originally invented by Adobe, it is now an open standard that is maintained by the International Organization for Standardization (ISO). You can work with a preexisting PDF in Python by using the PyPDF2 package.

realpython.com/pdf-python/

View More ...

Applications: Stacks, Queues, and Graphs – Real Python

03:33 The adjacency list can be represented as a dictionary where the keys are the individual vertices and the values are linked lists that represent all the possible vertices you can travel to from the given vertex in one move. 03:51 For example, if I’m at vertex 1, I can travel to vertex 2 or 3 in a single move.

realpython.com/lessons/stacks-queues-graphs/

View More ...

About Kristijan Ivancic – Real Python

About Kristijan Ivancic. Twitter. GitHub. Hi, I’m Kristijan! I work as a computer vision and machine learning engineer at Bird.i. I’m also a Python coach at the Glasgow branch of codebar.io. I’m insanely curious by nature, constantly doing deep dives into something new.

realpython.com/team/kivancic/

View More ...

Type Checking With Mypy – Real Python

Well, this is from the Mypy project page. “Mypy is an optional static type checker for Python that aims to combine the benefits of dynamic (or ‘duck’) typing and static typing. Mypy combines the expressive power and convenience of Python with a powerful type system and compile-time type checking.”. A little background on the Mypy project.

realpython.com/lessons/type-checking-mypy/

View More ...

np.linspace(): Create Evenly or Non-Evenly Spaced Arrays

In the example above, you create a linear space with 25 values between -10 and 10.You use the num parameter as a positional argument, without explicitly mentioning its name in the function call.This is the form you’re likely to use most often. Using range() and List Comprehensions. Let’s take a step back and look at what other tools you could use to create an evenly spaced range of numbers.

realpython.com/np-linspace-numpy/

View More ...

PyCon Africa 2019 (Recap) – Real Python

PyCon Africa was a wonderful, inspiring, and technically enlightening conference that took place in Accra, Ghana from August 6 to 10, 2019 at the University of Ghana. This conference was the very first pan-African conference for Python developers and was attended by 323 Pythonistas from 26 different countries. Most of the attendees traveled from countries around Africa, and a number of

realpython.com/pycon-africa-2019-recap/

View More ...

Python Statistics Fundamentals: How to Describe Your Data

In the era of big data and artificial intelligence, data science and machine learning have become essential in many fields of science and technology. A necessary aspect of working with data is the ability to describe, summarize, and represent data visually. Python statistics libraries are comprehensive, popular, and widely used tools that will assist you in working with data.

realpython.com/python-statistics/

View More ...

Build a Recommendation Engine With Collaborative Filtering

Collaborative Filtering is the most common technique used when it comes to building intelligent recommender systems that can learn to give better recommendations as more information about users is collected. Most websites like Amazon, YouTube, and Netflix use collaborative filtering as a part of their sophisticated recommendation systems.

realpython.com/build-recommendation-engine-collaborative-filtering/

View More ...

Episode #12: Web Scraping in Python: Tools, Techniques

We discuss getting started with web scraping, and cover tools and techniques. Kimberly gives advice on finding elements inside of the html, and techniques for cleaning your data. She also notes a recent change to the legal landscape regarding scraping the web. Kimberly is a Senior Data Scientist at Metis Data Science Bootcamp in New York City.

realpython.com/podcasts/rpp/12/

View More ...

ADS