In Python, a virtual environment is way of isolating a working copy of Python to test software or to install new packages without affecting existing packages. virtualenv is a tool used to create isolated Python environments. virtualenv is a useful tool for creating sandboxes or for installing packages locally without system administrator access and also…… Continue reading Virtual environments in Python
Microsoft Excel is a popular application for Windows that is used to work with spreadsheets, tables and charts. Spreadsheets are used extensively in the business world to record budgets, create reports, manage inventory or perform calculations. Working on Excel tasks in your day to day work can be boring, mind-numbing and even daunting especially if…… Continue reading Working With Excel Spreadsheets using Python
Python follows a “batteries included” philosophy, which means that a lot of functionality you may need is built in to the language itself.Python developers have developed their own modules to extend Python’s capabilities even further. These third party modules are kept in the Python Package Index or PyPI which is similar to an app store…… Continue reading How to install 3rd party python modules
The “FizzBuzz Test” is an interview question meant to filter out candidates that cannot program their way out of a paper bag. When I first read about this test on codinghorror, I assumed that it must be a very difficult challenge for it to filter out 99% of software development job candidates but it turns…… Continue reading My solution to the FizzBuzz challenge.
Reading and writing to files using Python is easy to do. In this post, I will go over how to read and write to text files. First, create a file object by calling the open function. Python’s built-in open function is used to open test.txt file in read mode. This tells python what file to…… Continue reading How To Read and Write Files Using Python.
The shelve is used to store Python objects to a file in a dictionary like format.shelve is used where using a relational database would create too much overhead or is unnecessary for example to persist data between program runs. Shelve is part of the Python Standard Library so getting it to work in your programs…… Continue reading Python: Storing Objects Using Shelve
In today’s post I show you how to use three python built in functions to populate a list with letters of the alphabet. To achieve our goal we will the chr() and ord() built-in functions. I will also explain how to use the map() function to make your code look cleaner. To the code: Take…… Continue reading Python: How To Generate a List Of Letters In The Alphabet