Core: learn it Step 2 of 16 on the Python Developer roadmap

Numbers and arithmetic

Python has whole numbers (int) and decimals (float), plus operators like +, *, // and %. Try working out the change from a 50 cedi note to see them in action. Be aware that floats can give tiny rounding surprises, such as 0.1 + 0.2.

Learn it on JeliScript

Resources

More in Values, variables and types

See it on the Python Developer roadmap