Python tutorials

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

Using the “not” Boolean Operator in Python

Python’s not operator allows you to invert the truth value of Boolean expressions and objects. You can use this operator in Boolean contexts, such as if statements and while loops. It also works in non-Boolean contexts, which allows you to invert the truth value of your variables. Using the not operator effectively will help you write accurate negative Boolean expressions to control the flow of execution in your programs. In this tutorial, you’ll learn: How Python’s not operator works How […]

Read more

Django Templates: Built-in Tags and Filters

Django is a powerful framework for creating web applications in Python. Its features include database models, routing URLs, authentication, user management, administrative tools, and a template language. You can compose reusable HTML that changes based on the data you pass to the template language. Django templates use tags and filters to define a mini-language that’s similar to Python—but isn’t Python. You’ll get to know Django templates through the tags and filters you use to compose reusable HTML. In this tutorial, […]

Read more

The NLP Cypher | 10.17.21

David is killing it! Welcome back NLP peeps! Do you miss the old days? The old internet days of modem calling, static websites, you know… a time of innocence where developers were innovating the backbone of the internet at hyper speeds? Well, we are very much going thru that right now via the Web 3.0 revolution. Cryptocurrencies usually get all of the attention but there is something else at play and it involves the entire web. You see, the current […]

Read more

Using the len() Function in Python

In many situations, you’ll need to find the number of items stored in a data structure. Python’s built-in function len() is the tool that will help you with this task. There are some cases in which the use of len() is straightforward. However, there are other times when you’ll need to understand how this function works in more detail and how to apply it to different data types. In this tutorial, you’ll learn how to: Find the length of built-in […]

Read more
1 105 106 107 108 109 185