In this video you will learn the basics of eval() in python and how to selectively execute the methods.
Full Playlist : • Py-Pie Python Tutorial
Facebook : / py-pie-python-for-beginners-113344127050954
Twitter : / shankar35425457
'''
eval method in python
eval(expression, globals=None, locals=None)
'''
def square(n):
return n*n
def cube(n):
return n*n*n
x = input('please enter your method')
print(eval(x))
import math
print(eval('math.sqrt(4)', None, {}))
En esta página del sitio puede ver el video en línea Python Tutorial for Beginners | Eval Method in Python de Duración hora minuto segunda en buena calidad , que subió el usuario harshal mishra 15 mayo 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 22 veces y le gustó 3 a los espectadores. Disfruta viendo!