Anyway to input python command and execute it?

  python, python-3.x
a = input('Enter something:') #e.g. input is print('Hello World')
# some function
print(a) #and then we get only `Hello World` out as we use print

I already researching about execute shell command via python but nothing related what I want to do, or I need to change to language that’s not python? or even it’s possible to do?

Thankyou.

Source: Python-3x Questions

LEAVE A COMMENT