Python Tutorial for Beginners | Eval Method in Python

Publicado em: 15 Maio 2020
no canal de: harshal mishra
22
3

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, {}))


Nesta página do site você pode assistir ao vídeo on-line Python Tutorial for Beginners | Eval Method in Python duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário harshal mishra 15 Maio 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 22 vezes e gostou 3 espectadores. Boa visualização!