Python tutorials

Exercises Course: Introduction to Web Scraping With Python

Web scraping is the process of collecting and parsing raw data from the Web, and the Python community has come up with some pretty powerful web scraping tools. The Internet hosts the greatest source of information on the planet. Many disciplines, such as data science, business intelligence, and investigative reporting, can benefit enormously from collecting and analyzing data from websites. In this course, you’ll practice: Parsing website data using string methods and regular expressions Parsing website data using an HTML […]

Read more

Quiz: How to Flatten a List of Lists in Python

Interactive Quiz ⋅ 7 QuestionsBy Martin Breuss Share Or copy the link: Copied! Happy Pythoning! In this quiz, you’ll test your understanding of how to flatten a list in Python. You’ll write code and answer questions to revisit the concept of converting a multidimensional list, such as a matrix, into a one-dimensional list. The quiz contains 7 questions and there is no time limit. You’ll get 1 point for each    

Read more

Quiz: Python Type Checking

Interactive Quiz ⋅ 17 QuestionsBy Martin Breuss Share Or copy the link: Copied! Happy Pythoning! In this quiz, you’ll test your understanding of Python Type Checking. By working through this quiz, you’ll revisit type annotations and type hints, adding static types to code, running a static type checker, and enforcing types at runtime. The quiz contains 17 questions and there is no time limit. You’ll get 1 point for each    

Read more

Split Your Dataset With scikit-learn’s train_test_split()

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: Splitting Datasets With scikit-learn and train_test_split() One of the key aspects of supervised machine learning is model evaluation and validation. When you evaluate the predictive performance of your model, it’s essential that the process be unbiased. Using train_test_split() from the data science library scikit-learn, you can split your dataset into subsets that minimize the […]

Read more

Quiz: Build a Blog Using Django, GraphQL, and Vue

Interactive Quiz ⋅ 8 QuestionsBy Philipp Acsany Share Or copy the link: Copied! Happy Pythoning! In this quiz, you’ll test your understanding of building a Django blog back end and a Vue front end, using GraphQL to communicate between them. You’ll revisit how to run the Django server and a Vue application on your computer at the same time. The quiz contains 8 questions and there is no time limit.    

Read more

Quiz: Python’s Built-in Functions: A Complete Exploration

Interactive Quiz ⋅ 24 QuestionsBy Leodanis Pozo Ramos Share Or copy the link: Copied! Happy Pythoning! Test your understanding of Python’s built-in functions and how to use them in your code. Take this quiz after reading our Python’s Built-in Functions: A Complete Exploration tutorial. The quiz contains 24 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll    

Read more

Quiz: Choosing the Best Font for Programming

Interactive Quiz ⋅ 12 QuestionsBy Philipp Acsany Share Or copy the link: Copied! Happy Pythoning! In this quiz, you’ll test your understanding of how to choose the best font for your daily programming. You’ll get questions about the technicalities and features to consider when choosing a programming font and refresh your knowledge about how to spot a high-quality coding font. The quiz contains 12 questions and there is no time limit.    

Read more

How Do You Choose Python Function Names?

One of the hardest decisions in programming is choosing names. Programmers often use this phrase to highight the challenges of selecting Python function names. It may be an exaggeration, but there’s still a lot of truth in it. There are some hard rules you can’t break when naming Python functions and other objects. There are also other conventions and best practices that don’t raise errors when you break them, but they’re still important when writing Pythonic code. Choosing the ideal […]

Read more

Quiz: Split Your Dataset With scikit-learn’s train_test_split()

Interactive Quiz ⋅ 7 QuestionsBy Martin Breuss Share Or copy the link: Copied! Happy Pythoning! In this quiz, you’ll test your understanding of how to use train_test_split() from the sklearn library. By working through this quiz, you’ll revisit why you need to split your dataset in supervised machine learning, which subsets of the dataset you need for an unbiased evaluation of your model, how to use train_test_split() to split your data, and how to combine    

Read more

Customize VS Code Settings

Visual Studio Code, is an open-source code editor available on all platforms. It’s also a great platform for Python development. The default settings in VS Code present a somewhat cluttered environment. This Code Conversation with instructor Philipp Acsany is about learning how to customize the settings within the interface of VS Code. Having a clean digital workspace is an important part of your work life. Removing distractions and making code more readable can increase productivity and even help you spot […]

Read more
1 2 3 4 172