While loop without an exit condition in real life 😅
Get daily-updated HD wallpapers for Lifetime at just $0.99 with Infinity Walls Pro. No hidden fees, no subscriptions—just stunning visuals for your phone. Download now! 🔗 play.google.com/store/apps/det…
@GithubProjects The safe way to turn that off is to cut the electricity off 🔌 👀
@GithubProjects Cut the main supply and fix (terminate and fix)
@GithubProjects That's incorrect, there IS an exit condition Here is the more accurate code: userInput = readUserInput(); while (userInput == true) { fan.rotate(); }
@GithubProjects if (fan.contains(“broomstick”) { break; }
@GithubProjects Searching for the house breakers would be the equivalent of CTRL+C
@GithubProjects Those who grew up with this know you just put hand on center of fan for about 5 seconds to slow it then turn it off quickly before the motor overheats.
@GithubProjects def flip_breaker(): print("Breaker flipped!") breaker_status = "on" if breaker_status == "on": print("there is always a way") else: flip_breaker()
@GithubProjects 😂😂😂😂 laughing so hard and trying to explain to my wife
@GithubProjects Here is the trick… Once the electricity goes out, thats your opportunity to turn it off. In a 3rd world country you don’t have electricity 24/7.
@GithubProjects we don't have access to ctrl-c in the real world
@GithubProjects More loops needed - Watching TV without a remote control or a power button! - Being stuck in a never-ending traffic circle! - Listening to a song on repeat forever! - Being in a never-ending meeting that never adjourns
@GithubProjects 😂while (true) { if (rotateCount++ >= 100) { killElectricity(); break; } fan.rotate(); }
@GithubProjects The condition is always true.😂😂😂
@GithubProjects I would be surprised if that wasn't connected to a light switch somewhere.
@GithubProjects Looks like the exit condition is the fan falling off the ceiling lol
@GithubProjects Easy.. You turn it off by going in through the side.
@GithubProjects What if you turn it off from from main power station, everything has a solution