Let’s say you want to store a list of integers in Python: list_of_numbers = [] for i in range(1000000): list_of_numbers.append(i) Those numbers can easily fit in a 64-bit integer, so one would hope Python would store those million integers in no more than... (more…)
Read more »
Recently I had a discussion over Reddit over why would someone would use Python over other programming languages. The discussion was pretty good and thus I thought about writing a post about it.
First of all, let me give you my thoughts on Python. Python ... (more…)
Read more »
The challenge Remove a exclamation mark from the end of string. For a beginner kata, you can assume that the input data is always a string, no need to verify it. Examples Test cases The solution in Python Option 1: Option 2 (using endswith): Option 3 (sim... (more…)
Read more »
Design by contract for Python with many validators support. - life4/deal... (more…)
Read more »
Learn Python, a powerful language used by sites like YouTube and Dropbox. Learn the fundamentals of programming to build web apps and manipulate data. Master Python loops to deepen your knowledge. (more…)
Read more »