Python Tutorial for Beginners | Eval Method in Python

Published: 15 May 2020
on channel: 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, {}))


On this page of the site you can watch the video online Python Tutorial for Beginners | Eval Method in Python with a duration of hours minute second in good quality, which was uploaded by the user harshal mishra 15 May 2020, share the link with friends and acquaintances, this video has already been watched 22 times on youtube and it was liked by 3 viewers. Enjoy your viewing!