Skip to content

Instantly share code, notes, and snippets.

@CharudattaManwatkar
Created April 4, 2021 08:22
Show Gist options
  • Save CharudattaManwatkar/4eb045df3af5fdca7c595aef5e1f15d0 to your computer and use it in GitHub Desktop.
Save CharudattaManwatkar/4eb045df3af5fdca7c595aef5e1f15d0 to your computer and use it in GitHub Desktop.
eval and exec functions can
a = 3
b = eval('a + 2')
print('b =', b)
exec('c = a ** 2')
print('c is', c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment