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, {}))
Sur cette page du site, vous pouvez voir la vidéo en ligne Python Tutorial for Beginners | Eval Method in Python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur harshal mishra 15 mai 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 22 fois et il a aimé 3 téléspectateurs. Bon visionnage!