There are times when you are writing an application and you need to run another application. For example, you may need to open Microsoft Notepad on Windows for some reason. Or if you are on Linux, you might want to run grep. Python has support for launching external applications via the subprocess module. The subprocess […]
Application developers are always working with files. You create them whenever you write a new script or application. You write reports in Microsoft Word, you save emails or download books or music. Files are everywhere. Your web browser downloads lots of little files to make your browsing experience faster. When you write programs, you have […]
In this video tutorial, you will learn all about Python's list data type. If videos aren't your thing, then you can read the same content here: Python 101: Learning About Lists
Creating software is hard work. To make your software better, your application needs to keep working even when the unexpected happens. For example, let's say your application needs to pull information down from the Internet. What happens if the person using your application loses their Internet connectivity? Another common issue is what to do if […]
Learn how to use Strings in Python in this screencast. This video is based on a chapter from my book, Python 101 2nd Edition. You can read the written version here: Python 101: Working with Strings
There are many times when you are writing code that you will need to find a way to iterate over something. Perhaps you'll need to iterate over the letters in a string or the objects in a list. The process of iterating over something is done via a loop. A loop is a programming construct […]