This line of code uses a pretty ingenious way to manipulate the range of a number. In this short, we take a quick look to understand how it works!

While this is not really good programming practice because it puts too many operations on one line (as opposed to using if-statements), it takes quite a smart approach at solving this problem!

-----

Want to contribute to the channel? Consider using the "Super Thanks" feature above, or visit my website at https://nerdfirst.net/donate to find alternative ways to donate. Thank you!

-----

Disclaimer: Please note that any information is provided on this channel in good faith, but I cannot guarantee 100% accuracy / correctness on all content. Contributors to this channel are not to be held responsible for any possible outcomes from your use of the information.