Working Terminal like thing!
Viper2211 (54)

I just used the exec function and the eval function to create what seems like a real python terminal!

You are viewing a single comment. View All
Highwayman (1293)

What’s the difference between exec and eval? I’ve never seen exec before I think.


@Highwayman the exec() function executes a string or code object as python code. eval() essentially does the same thing, but runs the code within the program.

More Information: