Tag: Tutorials

  • Python – make_iterable

    Python – make_iterable

    Run into an issue with passing in an object to a function, but its type is changeable? Maybe you usually have multiple returns from another function formatted in an array or list or tuple, but in some cases it’s just a single value. This is a quick little check/changer to make sure your object is…

  • Python – Clamp

    Python – Clamp

    Here is a quick little trick – How to be sure that a value is between a minimum and a maximum? Say you have an algorithm that requires values between some arbitrary set of numbers, like -10.5 and 15.99. This function will clamp a number between your given boundaries, or clip it at those markers.…