18 Mar 2024 Juliano Luiz Faccioni Python Practice for Beginners: 15 Hands-On Problems Want to put your Python skills to the test? Challenge yourself with these 15 Python practice exercises taken directly from our Python courses! There’s no denying that solving Python exercises is one of the best ways to practice and improve your Python skills. Hands-on engagement with the language is essential for effective learning. This is exactly what this article will help you with: we've curated a diverse set of Python practice exercises tailored specifically for beginners seeking to test their programming skills. Read more 20 Nov 2023 Juliano Luiz Faccioni Python Set Examples: From Basic to Advanced Use Cases Learn how to use Python sets and set operations like a pro! Learn what sets are, how to create them, and how to work with them in real-world use cases. In the world of Python data types, Python sets are not as famous as lists, dictionaries, or tuples. Even seasoned Python developers are sometimes unaware of how useful Python sets can be. But worry not: This article will provide you with clear explanations of Python sets, and practical examples on how to use them. Read more 9 Oct 2023 Juliano Luiz Faccioni 13 Python Dictionary Examples for Beginners Want to master dictionaries, one of Python’s core data types? This article contains 13 Python dictionary examples with explanations and code that you can run and learn with! Dictionaries are one of Python’s most fundamental data types; they are widely used to represent real-world data and structures. To truly master Python programming, you need to know how dictionaries work and what you can do with them. And what better way to achieve this other than checking out some Python dictionary examples for beginners? Read more 4 Sep 2023 Juliano Luiz Faccioni An In-Depth Guide to Working with Python Sets Do a deep dive into Python sets with our guide. Master set operations and commonly used set methods and learn relevant use cases for this fundamental data structure. Have you heard about Python sets? They may not be as famous as other data structures in Python, such as lists and dictionaries. But ignoring Python sets is a mistake: They are just as flexible as lists, can be used to create complex filtering logic, and often outperform other data types. Read more 29 May 2023 Juliano Luiz Faccioni How to Append to a String in Python Find out how to append to a string in Python and concatenate strings in this article. We compare the different string appending methods and discuss which one you should use in each situation. Strings are one of the most basic data types in Python. But even experienced Python programmers may be confused about how to append text to the end of a string; unlike lists, strings do not have an append() method. Read more 6 Mar 2023 Juliano Luiz Faccioni How to Write the Python if Statement in one Line Have you ever heard of writing a Python if statement in a single line? Here, we explore multiple ways to do exactly that, including using conditional expressions in Python. The if statement is one of the most fundamental statements in Python. In this article, we learn how to write the Python if in one line. The if is a key piece in writing Python code. It allows developers to control the flow and logic of their code based on information received at runtime. Read more 23 Jan 2023 Juliano Luiz Faccioni A Guide to the Python csv Module What are CSV files, and how can you use Python alongside them? Learn how to use the csv module to read and work with CSV files in Python. You have probably seen tabular data before: it’s simply rows and columns containing some data. (Think of a table in an article or an Excel spreadsheet.) CSV files are one of the most common types of tables used by data scientists, but they can be daunting if you don’t know exactly how they work or how to use them alongside Python. Read more 26 Dec 2022 Juliano Luiz Faccioni How to Filter a Python Dictionary Learn how to build your own filters with multiple conditions, then use them to filter Python dictionaries by any combination of keys and values. Python dictionaries are extremely versatile. They can hold a variety of data types and are used to model many different real-world objects and relations. It is no surprise, then, that we want to perform specific operations (like filtering) on Python dictionaries. Filtering a dictionary in Python can be especially tricky because they can be filtered by key, values, or both, using an arbitrary number of conditions. Read more 30 Nov 2022 Juliano Luiz Faccioni How to Loop Over Multiple Lists in Python Learn how to loop over multiple lists side-by-side in Python – one element at a time. These techniques will work even if the lists have different lengths! Looping over lists is one of the most basic skills in Python. In some situations, you may find yourself having to loop over multiple lists side-by-side, taking one element from each list and performing an operation with it. If you’re new to Python, it is not always obvious how to do that or what caveats and best practices exist for this task. Read more 23 Nov 2022 Juliano Luiz Faccioni Python Scripts vs. Jupyter Notebooks: Pros and Cons Learn the ins and outs of Python scripts and Jupyter Notebooks, including when to use each one. There are many tools available to Python developers. Since this language’s early days, Python scripts have been the canonical way of writing and sharing Python code. But in the past few years, Jupyter Notebooks have gained considerable recognition among data scientists as a powerful tool for testing ideas and sharing results. But what exactly sets Jupyter Notebooks apart from Python scripts? Read more «« « 1 2 » »»