Generate Beautiful QR Codes With Python

From restaurant e-menus to airline boarding passes, QR codes have numerous applications that impact your day-to-day life and enrich the user’s experience. Wouldn’t it be great to make them look good, too? With the help of this tutorial, you’ll learn how to use Python to generate beautiful QR codes for your personal use case. In its most basic format, a QR code contains black squares and dots on a white background, with information that any smartphone or device with a […]

Read more

Class Concepts: Object-Oriented Programming in Python

Python includes mechanisms for doing object-oriented programming, where the data and operations on that data are structured together. The class keyword is how you create these structures in Python. Attributes are the data values, and methods are the function-like operations that you can perform on classes. In this course, you’ll explore writing code using class and its associated attributes and methods. In this video course, you’ll learn about: Why you write object-oriented code How to write a class What attributes […]

Read more

Python News: What’s New From August 2023

In August 2023, Python 3.12.0rc1 came out! With several exciting features, improvements, and optimizations, this release is only two steps away from the final release scheduled for October. If you want to stay on the cutting edge, then you must give it a try. But note that you shouldn’t use it in production. Another exciting release was Python in Excel, which allows you to leverage the power of Python inside your Excel workbooks. You’ll be able to use Python’s data […]

Read more

Get Started With Django: Build a Portfolio App

Django is a fully featured Python web framework that you can use to build complex web applications. In this tutorial, you’ll jump in and learn Django by completing an example project. You’ll follow the steps to create a fully functioning web application and, along the way, learn what some of the most important features of the framework are and how they work together. At the end of this tutorial, you’ll have a working portfolio website to showcase your projects. If […]

Read more

Create a Python Wordle Clone With Rich

In this video course, you’ll build your own Wordle clone for the terminal. Since Josh Wardle launched Wordle in October 2021, millions of people have played it. While you can play the original game on the Web, you’ll create your version as a command-line application and then use the Rich library to make it look good. As you follow along in this step-by-step project, you’ll practice how to set up a simple prototype game before iteratively developing it into a […]

Read more

How to Iterate Through a Dictionary in Python

Dictionaries are one of the most important and useful built-in data structures in Python. They’re everywhere and are a fundamental part of the language itself. In your code, you’ll use dictionaries to solve many programming problems that may require iterating through the dictionary at hand. In this tutorial, you’ll dive deep into how to iterate through a dictionary in Python. Solid knowledge of dictionary iteration will help you write better, more robust code. In your journey through dictionary iteration, you’ll […]

Read more

Click and Python: Build Extensible and Composable CLI Apps

You can use the Click library to quickly provide your Python automation and tooling scripts with an extensible, composable, and user-friendly command-line interface (CLI). Whether you’re a developer, data scientist, DevOps engineer, or someone who often uses Python to automate repetitive tasks, you’ll very much appreciate Click and its unique features. In the Python ecosystem, you’ll find multiple libraries for creating CLIs, including argparse from the standard library, Typer, and a few others. However, Click offers a robust, mature, intuitive, […]

Read more

Replacing a String in Python

If you’re looking for ways to remove or replace all or part of a string in Python, then this course is for you. You’ll be taking a fictional chat room transcript and sanitizing it using both the .replace() method and the re.sub() function. In Python, the .replace() method and the re.sub() function are often used to clean up text by removing strings or substrings or replacing them. In this tutorial, you’ll be playing the role of a developer for a […]

Read more

Build a Code Image Generator With Python

If you’re active on social media, then you know that images and videos are popular forms of content. As a programmer, you mainly work with text, so sharing the content that you create on a daily basis may not seem intuitive. That’s where a code image generator can come in handy for you! With a code image generator, you can create a nice-looking image of your code snippets. That way, you can share code without worrying about formatting, different syntax […]

Read more

Python Polars: A Lightning-Fast DataFrame Library

Now that you’ve installed Polars and have a high-level understanding of why it’s so performant, it’s time to dive into some core concepts. In this section, you’ll explore DataFrames, expressions, and contexts with examples. You’ll get a first impression of Polars syntax. If you know other DataFrame libraries, then you’ll notice some similarities but also some differences. Getting Started With Polars DataFrames Like most other data processing libraries, the core data structure used in Polars is the DataFrame. A DataFrame […]

Read more
1 83 84 85 86 87 908