By using this website, you agree to our privacy policy [ Ok ]

I like Python because of maths puns

by Abdur-Rahmaan Janhangeer



A cyclic group is a group of elements containing a ‘generator’, which is used to generate all of the other elements in the group by repeating a calculation.

One of the reasons i like Python is because it is riddled with mathematical puns, in many shapes and forms.

A generator yields a number. Numbers can be lazily evaluated. If we are at the 1000000000th of a term and we need the next one, we just yield the next one. We save space as we don’t have to pre-compute 1000000000s of numbers.