Ways to flip a Boolean
Whenever working with booleans while writing code there is almost always a scenario where one has to flip the boolean state i.e. true to false or vice-versa based on some condition. In this post, I wanted to showcase different ways to do so. Using Control statements: