Python tutorials

Building HTTP APIs With Django REST Framework

REST is a loosely defined protocol for listing, creating, changing, and deleting data on your server over HTTP. The Django REST framework (DRF) is a toolkit built on top of the Django web framework that reduces the amount of code you need to write to create REST HTTP API interfaces. In this course you’ll learn about: The REST protocol DRF Serializers and how to use them with Django objects Using Django views and DRF ViewSet classes to create REST end-points […]

Read more

Managing Python Dependencies

Managing Python Dependencies is your “one-stop shop” for picking up modern Python dependency management practices and workflows with minimal time investment. The course consists of 32 bite-sized video lessons, each focusing on a single concept. Progressing through the course, you’ll quickly build up a comprehensive knowledge of dependency management best practices in Python at your own, comfortable pace. Along the way, you’ll see hands on examples and step-by-step workflows that reinforce the skills you’re learning. By the end, you’ll know […]

Read more

Introduction to Sorting Algorithms in Python

Sorting is a basic building block that many other algorithms are built upon. It’s related to several exciting ideas that you’ll see throughout your programming career. Understanding how sorting algorithms in Python work behind the scenes is a fundamental step toward implementing correct and efficient algorithms that solve real-world problems. In this course, you’ll learn: How different sorting algorithms in Python work and how they compare under different circumstances How Python’s built-in sort functionality works behind the scenes How different […]

Read more

Evaluate Expressions Dynamically With Python eval()

The built-in Python function eval() is used to evaluate Python expressions. You can pass a string containing Python, or a pre-compiled object into eval() and it will run the code and return the result. Although Python’s eval() is an incredibly useful tool, the function has some important security implications that you should consider before using it. In this course, you’ll learn how eval() works and how to use it safely and effectively in your Python programs. In this tutorial, you’ll […]

Read more

Stochastic Gradient Descent Algorithm With Python and NumPy

Stochastic gradient descent is an optimization algorithm often used in machine learning applications to find the model parameters that correspond to the best fit between predicted and actual outputs. It’s an inexact but powerful technique. Stochastic gradient descent is widely used in machine learning applications. Combined with backpropagation, it’s dominant in neural network training applications. Basic Gradient Descent Algorithm The gradient descent algorithm is an approximate and iterative method for mathematical optimization. You can use it to approach the minimum […]

Read more

Python Web Applications: Deploy Your Script as a Flask App

You wrote a Python script that you’re proud of, and now you want to show it off to the world. But how? Most people won’t know what to do with your .py file. Converting your script into a Python web application is a great solution to make your code usable for a broad audience. In this tutorial, you’ll learn how to go from a local Python script to a fully deployed Flask web application that you can share with the […]

Read more

Plot With Pandas: Python Data Visualization Basics

Whether you’re just getting to know a dataset or preparing to publish your findings, visualization is an essential tool. Python’s popular data analysis library, pandas, provides several different options for visualizing your data with .plot(). Even if you’re at the beginning of your pandas journey, you’ll soon be creating basic plots that will yield valuable insights into your data. In this course, you’ll learn: What the different types of pandas plots are and when to use them How to get […]

Read more

Qt Designer and Python: Build Your GUI Applications Faster

To create a GUI for your windows and dialogs in PyQt, you can take two main paths: you can use Qt Designer, or you can hand code the GUI in plain Python code. The first path can dramatically improve your productivity, whereas the second path puts you in full control of your application’s code. GUI applications often consist of a main window and several dialogs. If you’re looking to create these graphical components in an efficient and user-friendly way, then […]

Read more

Python Inner Functions: What Are They Good For?

Inner functions, also known as nested functions, are functions that you define inside other functions. In Python, this kind of function has direct access to variables and names defined in the enclosing function. Inner functions have many uses, most notably as closure factories and decorator functions. In this tutorial, you’ll learn how to: Provide encapsulation and hide your functions from external access Write helper functions to facilitate code reuse Create closure factory functions that retain state between calls Code decorator […]

Read more

Python Modulo: Using the % Operator

Python supports a wide range of arithmetic operators that you can use when working with numbers in your code. One of these operators is the modulo operator (%), which returns the remainder of dividing two numbers. Modular operations are useful to check if a number is even or odd, simplifying cycling through data, and doing non-decimal based units conversion. In this course, you’ll learn: How modulo works in mathematics How to use the Python modulo operator with different numeric types […]

Read more
1 127 128 129 130 131 181