# introduction

• if you have never used these functions before, you will understand in a bit why i call it as evil functions
• is not python amazing?
• what is even interesting is actually with exec() is that, it gives you
even superior permission
• it gives you complete python control right within a function. as superior as
it is, personally, i would almost never recommend you to use it. p.s not
everybody around us is well-intentioned
• the code snippet above literally prints out every file in the specified folder
an experienced python developer can easily delete, manipulate, modify, create
and more that i can not think of right now if you do give such an access to a
user. it is kind of replicating an ssh

• then how and when do we use these evil functions?

• you have no other way to use but this function in your program (almost
impossible)
• you do put a very advanced filtering on the user input before actually
forwarding it to one of these functions (especially exec())
• p.s these functions are actually slower in speed in most scenarios than
the functions, which can easily replace them
• need even more spacing for your code within exec()? say no more
• put anything in as long as you want! that is what she said