use exec command python inside class code example
Example: python exec
# exec lets us run strings as normal python code
program = "print('Hello there!')"
exec(program)
# exec lets us run strings as normal python code
program = "print('Hello there!')"
exec(program)