Python tutorials

Cython, Rust, and more: choosing a language for Python extensions

Sometimes pure Python code isn’t enough, and you need to implement an extension in a compiled language like C, C++, or Rust. Maybe your code is slow, and you need to speed it up. Maybe you just need access to a library written in another language. Depending on your particular situation and needs, you may want to choose a different tool. But which one? Let’s see what your options are, and then go through a variety of scenarios and see […]

Read more

Advanced Visual Studio Code for Python Developers

Visual Studio Code, or VS Code for short, is a free and open source code editor by Microsoft. You can use VS Code as a lightweight code editor to make quick changes, or you can configure it as an integrated development environment (IDE) through the use of third-party extensions. In this tutorial, you’re going to look at how to get the most out of VS Code for Python development. During this tutorial, you’ll learn how you can configure, extend, and […]

Read more

Using plt.scatter() to Visualize Data in Python

An important part of working with data is being able to visualize it. Python has several third-party modules you can use for data visualization. One of the most popular modules is Matplotlib and its submodule pyplot, often referred to using the alias plt. Matplotlib provides a very versatile tool called plt.scatter() that allows you to create both basic and more complex scatter plots. In this course, you’ll learn how to: Create a scatter plot using plt.scatter() Use the required and […]

Read more

Build a Command-Line To-Do App With Python and Typer

Building an application to manage your to-do list can be an interesting project when you’re learning a new programming language or trying to take your skills to the next level. In this tutorial, you’ll build a functional to-do application for the command line using Python and Typer, which is a relatively young library for creating powerful command-line interface (CLI) applications in almost no time. With a project like this, you’ll apply a wide set of core programming skills while building […]

Read more

Build a Content Aggregator in Python

In this project-based tutorial, you’ll build a content aggregator from scratch using Python and the popular framework Django. With so much content coming out online daily, it can be time consuming to go to multiple sites and sources to consume information about your favorite subjects. This is why content aggregators are so popular and powerful, as you can use them to view all the latest news and content in one place. Whether you’re looking for a portfolio project or ways […]

Read more

Reading Input and Writing Output in Python

You often need to set up a program to communicate with the outside world by obtaining input data from the user and displaying data back to the user. This course will introduce you to reading input and writing output in Python. By the end of this course, you’ll know how to: Take user input from the keyboard with the built-in function input() Display output to the console with the built-in function print()    

Read more

The NLP Cypher | 10.31.21

The Localization Problem (LP) is a glaring dark cloud hanging over the state of affairs in applied deep learning. And acknowledging this problem, I believe, will enable us to make better use of applied AI and expand our knowledge in how the business market will form. Defining LP: There is a limit to how much large centralized language models can generalize at scale given: 1) that different users inherently have varying definitions of ground-truths due to inter-dependencies to their unique […]

Read more

Python’s zipapp: Build Executable Zip Applications

A Python Zip application is a quick and cool option for you to bundle and distribute an executable application in a single ready-to-run file, which will make your end users’ experience more pleasant. If you want to learn about Python applications and how to create them using zipapp from the standard library, then this tutorial is for you. You’ll be able to create Python Zip applications as a quick and accessible way to distribute your software products to your end […]

Read more

Django Templates: Implementing Custom Tags and Filters

You set up your project and wrote a view to use for testing. Then, you used built-in tags and filters as well as loaded tags from a library. In the previous section, you learned how to register tags and filters. In this section, you’re all set to write your first Django custom filter! Filters as Functions As mentioned previously, filters are Python functions. The most basic filters take a single argument: the value to filter. The result of a filter […]

Read more

Writing Idiomatic Python

What programming idioms are unique to Python? This course is both a short overview for people coming from other languages as well as an introduction for programming beginners to the idiomatic practices within Python. In this course, you’ll learn: How to access and interpret The Zen of Python How to set up a script How to test truth values How to swap variables in-place How to create Pythonic for loops    

Read more
1 101 102 103 104 105 181