Share your repls and programming experiences

← Back to all posts
Python Console in 8 lines of code!
ruiwenge2

This is a really simple python console I made.

Voters
justaperson22
Bunnytoes
cuber1515
ruiwenge2
Comments
hotnewtop
Bunnytoes

how would I create this in a different language?

ruiwenge2

@Bunnytoes i used the exec function in Python, which would execute the code that the user typed. i know javascript has eval

Bunnytoes

wow

cuber1515

COOL!

ruiwenge2

@cuber1515 thank you :)