Python tutorials

Quiz: Lists vs Tuples in Python

Interactive Quiz ⋅ 10 QuestionsBy Leodanis Pozo Ramos Share Challenge yourself with this quiz to evaluate and deepen your understanding of Python lists and tuples. You’ll explore key concepts, such as how to create and manipulate these data types, while also learning best practices for using them efficiently in your code. You can take this quiz after reading the Lists vs Tuples in Python tutorial. The quiz contains 10 questions and there is no time limit. You’ll get 1 point […]

Read more

Using Pydantic to Simplify Python Data Validation

Pydantic is a powerful data validation and settings management library for Python, engineered to enhance the robustness and reliability of your codebase. From basic tasks, such as checking whether a variable is an integer, to more complex tasks, like ensuring highly-nested dictionary keys and values have the correct data types, Pydantic can handle just about any data validation scenario with minimal boilerplate code. In this video course, you’ll learn how to: Work with data schemas with Pydantic’s BaseModel Write custom […]

Read more

Quiz: How to Use Conditional Expressions With NumPy where()

Interactive Quiz ⋅ 10 QuestionsBy Ian Eyre Share In this quiz, you’ll test your understanding of How to Use Conditional Expressions With NumPy where(). By working through the questions, you’ll consolidate the knowledge you gained from the tutorial and take yourself beyond what you learned. To answer some of the questions, you’ll need to do some research outside of the tutorial itself. Embrace this challenge because exploration can take you on a valuable learning journey. The quiz contains 10 questions […]

Read more

Quiz: Generate Images With DALL·E and the OpenAI API

Interactive Quiz ⋅ 9 QuestionsBy Martin Breuss Share In this quiz, you’ll test your understanding of generating images with DALL·E by OpenAI API using Python. By working through this quiz, you’ll revisit how to use the OpenAI Python library, make API calls related to image generation, create images from text prompts, create variations of an image, and convert Base64 strings to PNG image files. The quiz contains 9 questions and there is no time limit. You’ll get 1 point for […]

Read more

Generate Images With DALL·E and the OpenAI API

Describe any image, then let a computer create it for you. What sounded futuristic only a few years ago has become reality with advances in neural networks and latent diffusion models (LDM). DALL·E by OpenAI has made a splash through the amazing generative art and realistic images that people create with it. OpenAI allows access to DALL·E through their API, which means that you can incorporate its functionality into your Python applications. You’ll need some experience with Python, JSON, and […]

Read more

Web Scraping With Scrapy and MongoDB

Scrapy is a robust Python web scraping framework that can manage requests asynchronously, follow links, and parse site content. To store scraped data, you can use MongoDB, a scalable NoSQL database, that stores data in a JSON-like format. Combining Scrapy with MongoDB offers a powerful solution for web scraping projects, leveraging Scrapy’s efficiency and MongoDB’s flexible data storage. If you’re new to web scraping and you’re looking for flexible and scalable tooling, then this is the right tutorial for you. […]

Read more

Using Astropy for Astronomy With Python

This course covers two problems from introductory astronomy to help you play with some Python libraries. You’ll use Astropy, NumPy, Matplotlib, and pandas to find planet conjunctions, and graph the best viewing times for a star. In this course you’ll learn about: Astronomy concepts of conjunction and optimal viewing The Python package Astropy Using pandas to process data Building graphs with Matplotlib Python’s warning module What’s Included: Downloadable Resources:    

Read more

How to Install Python on Your System: A Guide

Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Python Basics: Setting Up Python Installing the latest version of Python on your computer could be a common requirement for you as a Python programmer. Fortunately, you’ll have a multitude of installation options. For example, you can download the official Python installer from Python.org, use your operating system’s package manager or app store, and […]

Read more

Quiz: Primer on Jinja Templating

Interactive Quiz ⋅ 5 QuestionsBy Philipp Acsany Share In this quiz, you’ll test your understanding of Jinja templating. Jinja is a powerful tool for building rich templates in Python web applications, and it can also be used to create text files with programmatic content. The quiz contains 5 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good […]

Read more

Exploring Astrophysics in Python With pandas and Matplotlib

This course uses three problems often covered in introductory astro-physics courses to play in Python. Along the way you’ll learn some astronomy, and how to use a variety of datascience libraries like NumPy, Matplotlib, pandas, and pint. In this video course you’ll learn about: Introductory astrophysics topics Working with dataframes in pandas Writing code that uses scientific units Visualizing information with Matplotlib What’s Included: Downloadable Resources:    

Read more
1 7 8 9 10 11 182