• + 3 comments

    I am new to Python, but eval() is considered bad practice and contains a security hole: http://stackoverflow.com/a/9384005

    This is how I made mine and it avoids that security hole:

    cmd = "l.{}({},{})".format(cmd, num[0], num[1])

    exec(cmd)