Skip to content

Articles · page 7

Python repr vs str

Understand repr vs str in Python and learn how to use them in any custom class. Examples of using repr for debugging.

Feb 17, 2019

Hashables in Python

A hashable is any object that returns its "Hash Code" when asked, and that code stays the same for the whole life of the object. Learn how it works in Python.

Nov 18, 2018

Mutable and Immutable Types in Python

Learn whether a variable can change (mutable) or not (immutable). Mutable: List, Dict, Set. Immutable: String, Int, Float, Bool, Tuple, Range, Decimal.

Aug 5, 2018

Building Your Own Collection in Python

Learn how to build your own Collection in Python step by step: Container, Sized and Iterable explained, plus the difference between an Iterator and an Iterable.

May 27, 2018

*args and **kwargs in Python, with Examples

One of the things we all overlook when starting to learn Python, and one of the most puzzling, is functions (or methods) that take *args and **kwargs as parameters.

Feb 17, 2018

Binary: Combinations and Conversion

Learn how numeral system combination tables work and convert between binary, decimal, hexadecimal and octal with simple mental math.

Aug 29, 2017

Binary Number System

Learn what the binary number system is, how it relates to decimal, octal, hexadecimal and base 64, and how to read bases and number notations.

Jul 28, 2017

How to Build the Java 9 JDK

Learn how to build JDK 9 from source code, just ahead of its imminent release. A step-by-step guide to get the new Java version running on your machine.

Jun 3, 2017

Java Type Inference: The Diamond Operator

Java's diamond operator lets you cut down on verbosity when writing your code. Learn how it works with generics and type inference, and where it falls short.

May 6, 2017