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