Formatting Integers in Different Bases in Python
In this post we dive deeper into Python's formatting syntax, learning about displaying numbers in different bases. We also make a neat colour converter too!
In this post we dive deeper into Python's formatting syntax, learning about displaying numbers in different bases. We also make a neat colour converter too!
In this post we continue looking at formatting, this time exploring nested string interpolation, which we can use to dynamically set formatting options.
Learn how to leverage Python's detailed formatting language to control how numbers are displayed in your applications.
Learn about conditional statements in Python: a slightly obscure bit of syntax that allows for succinct conditional logic, particularly during assignments.
In this post we learn about choices and sample: two useful functions in the random module used for generating collections of random values.