Results for “math”

Showing 11–16 of 16

  1. Article Python Fundamentals

    Python Functions for Beginners

    …sheet of paper with the number on it. They can keep it, do maths with it or pass it on to someone else. A good rule of thumb: if a function calculates something, it should return the result and let…

  2. Article Python Fundamentals

    Python Books for Beginners

    …functions, which keeps things visually interesting. The math isn't overwhelming either - basic algebra is enough for most examples. Fair warning though: this reads more like a textbook (because it is…

  3. Article Python Fundamentals

    Variables and data types in Python

    …Numbers (complex) Used for calculations involving complex mathematics, common in orbital dynamics and wave analysis: signal_data = 3 + 4j # Complex number representation wave_function = 2.5 + 1.8j #…

  4. Challenge

    Wrong average

    …21 °C. Predict what the code prints, find out where the maths goes wrong, fix it, then work out an average that has a trap of its own. Predict and run Don't run the code yet. Read it and decide what…

    Fix the code Easy 3 stages order of operations brackets average debugging