Debugging Python Code

The Python programs I have written from the time I started learning Python up to now are very simple scripts. I still consider myself a beginner, but I have started to write not so simple code that is usually very brittle and buggy. I have a Github repo of scripts that automate common tasks on … 

 

Set Comprehension in Python

In a previous article I discussed list comprehensions. Today I will talk about set comprehensions. Set comprehensions were added to Python in version 2.7 and they are similir to List Comprehensions, the only difference is that we use curly braces instead of square brackets when making them. A set is an un-ordered collection in which … 

 

Python List Comprehensions

A special syntax form in the Python language is the list comprehension. List comprehensions allow programmers to make their code more compact and (sometimes) harder to read if they push the comprehensions too far! The syntax consists of an expression in square brackets to create a new list. In order to show the beauty of … 

 

The python lambda

Recently I learned how to use the lambda function, a simple, unbound one liner function. A lambda is similar to a normal Python function, the only difference is in the way it is used. The example below will explain better: The poww function defined above takes an argument x and squares it. So if we … 

 

How I became an entrepreneur.

For a very long time I was bothered by how business in my city don’t have an online presence except for a Facebook page and a directory listing. That was until I decided to do something about it, so last year in May I started a ZimClix, a business designed to provide consultation to small … 

 

Meeting with the NUST FSAs

A long overdue post. Two weeks ago I was invited by Zibusiso to the National University of Science and Technology to talk to the Firefox Student Ambassadors club he has been working hard to get off the ground. As this was the club’s first meting, we discussed Mozilla’s goals for the year, our mission and …