பப்பு 🦜 தி டெக்கி 👩‍💻
147 subscribers
455 photos
34 videos
164 files
2.07K links
Download Telegram
Get 10th result using name only at here.
Get 11th result using name only at here.
Introducing Jeem Boom Bhaa 🖖
Control your PC media using hand gestures.
pappu_tech.py
830 B
Self-Modifying Python Code: Commenting Out a Line After Execution

In a bold foray into the realm of self-modifying code, we present a Python function that comments out its own line after execution. The concept, while intriguing, isn't commonly practiced in real-world applications for a myriad of reasons, including maintenance concerns and potential bugs. However, for the brave and the curious, let's delve into this unusual approach.

Example Usage:

run_once(print('No hello me'))

When this line is executed, the output "No hello me" is displayed, and the line itself gets commented out in the source file. Running the script again will not produce any output from this line since it has been commented out.

P.S run_once(exec('flag = 1')) for statements
👍2👏1
Forwarded from Zend 🚀
Hey my dear Telegram users, if you're looking for an upgrade, check out Zend. This unofficial client packs in advanced features, top-notch security, and a sleek interface. Make your messaging experience even better—Zend is available now on Google Play!
👍2
Forwarded from Jobs 💻📱🎲 (மனோஜ்குமார் பழனிச்சாமி)
👏1