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 … 

 

Participation Leaders Summit Singapore

I attended the Mozilla Participation Leadership summit in Singapore in January 2016 where strategies on how to build the Mozilla community were discussed, planning was done, coffee was had and Mozlove was spread. Here are some of the pictures from the event.

 

AfricaCom 2014

I had the opportunity to man the Mozilla Booth at Africacom 2014 with fellow Mozillian Oarabile Mudongo. This was the largest Tech show I’d ever attended. Our job was to demo Firefox OS phones made by Alcatel and to get people excited before the launch. Africacom was hosted in the beautiful city of Cape Town …