30 Jan 2023 Luke Hande What 'inconsistent use of tabs and spaces in indentation' Means in Python and How to Fix It Learn why indentation in Python is so important and how you can fix any mistakes. Indenting blocks of code is an important part of programming; it serves several purposes. First and foremost, it improves readability. Imagine removing all the formatting from a recipe leaving only the spaces between the list of ingredients and instructions. This would be hard for the cook to follow. In Python, indentation also controls how your code behaves. Read more 16 Jan 2023 Luke Hande What’s the Difference Between a Python Module and a Python Package? One of Python’s many advantages is its packages – or are they Python modules? Discover the difference between Python packages and Python modules and learn why both are important in this article. Python is an open-source language, meaning its existing and new developments are freely available to everyone. Anyone can write some code and then make it available for others to download, install, and use. You might find these programs referred to as Python modules or Python packages. Read more 28 Dec 2022 Luke Hande What Is the Python Interpreter? Without an interpreter, your Python code is just words on a screen. Find out what a Python interpreter is, what it does, and what your code looks like ‘under the hood’. At the most fundamental level, computer programs are simply sets of instructions. To do some basic arithmetic and save the output we need something like the following instructions: ‘load the number 8’, then ‘load the number 9’, then ‘add the first number to the second and store it somewhere’. Read more 20 Dec 2022 Luke Hande Best Python Packages for Excel At some point, you’ll probably need to work with data from an Excel spreadsheet. How can you work with Excel data and files in Python? We review some of the best Python packages for Excel in this article. An Excel spreadsheet is a very common way of storing tabular data. But Excel is not without its problems, as we discussed in the article Excel Alternative: What to Learn as a Data Analyst. Read more 21 Nov 2022 Luke Hande How to Run a Python Script in Windows If you want to learn Python, you’ll need to know how to run Python scripts or .py files in Windows. Find out what you need to do in this article! When it comes to operating systems, there are three main ones for personal computers: Microsoft Windows, Apple’s macOS, and Linux. You can use any of these operating systems to develop and run your Python programs. However, there are subtle differences you need to keep in mind while developing your projects. Read more 24 Oct 2022 Luke Hande The enumerate() Function in Python What is the enumerate() function in Python and when do you need it? Find out in this article. While iterating through a list in Python, you’ll often need to keep track of the list elements’ indexes. The enumerate() function provides a useful way to do this. In this article, we’ll show you how to use this function to take your loops to the next level. This article is aimed at people without much Python programming experience. Read more 19 Oct 2022 Luke Hande Top Python Libraries for SQL Did you know that Python and SQL can work together? Find out all about Python’s SQL libraries in this article. Along with Python, SQL is a very common and useful tool for working with data. SQL stands for Structured Query Language; it’s a language used to manage data in a relational database. Although SQL is a different language to Python and has its own syntax, Python has libraries which can be used to connect to a database and write SQL queries to retrieve data – all from within your Python script. Read more 21 Sep 2022 Luke Hande 4 Best Python IDE and Code Editors If you want to learn to program in Python, you’ll need a code editor or an IDE. Find out which ones we recommend in this article! Professional software developers spend their whole day at the computer, writing and testing code. To make their programming lives easier, many Integrated Development Environments (IDEs) have been developed to help make programming more efficient. An IDE is simply a program in which you can write and run your code. Read more 17 Aug 2022 Luke Hande Python Libraries Every Programming Beginner Should Know Want to take full advantage of the Python computer programming language? Check out our top Python libraries for beginners! Python is a popular general-purpose programming language. Its clear syntax makes it ideal for beginners to learn. One of this language’s advantages is the large number of open-source libraries available. A Python library is a group of related code modules. You can use these modules in your own programs to make coding simpler and faster – e. Read more 20 Jul 2022 Luke Hande How to Print to the Standard Error Stream in Python Printing to Python’s standard error stream will help you better manage handling any errors in your programs. Find out how to do it in this article. Standard streams allow a program to interact with its environment during execution. This could be accepting input from the keyboard (using the input() function in Python), or displaying a message on the screen (using the print() function). There are three standard streams in computing: standard input, standard output, and standard error; they are commonly referred to as stdin, stdout, and stderr, respectively. Read more «« « 1 2 3 » »»