Python Eval programming tutorial

Channel:
Subscribers:
1,410,000
Published on ● Video Link: https://www.youtube.com/watch?v=1NJpqi5pqoU



Category:
Tutorial
Duration: 5:01
54,085 views
704


The expression argument is parsed and evaluated as a Python expression (technically speaking, a condition list) using the globals and locals dictionaries as global and local namespace. If the globals dictionary is present and lacks ‘__builtins__’, the current globals are copied into globals before expression is parsed. This means that expression normally has full access to the standard builtins module and restricted environments are propagated. If the locals dictionary is omitted it defaults to the globals dictionary. If both dictionaries are omitted, the expression is executed in the environment where eval() is called. The return value is the result of the evaluated expression. Syntax errors are reported as exceptions.

Source: https://docs.python.org/3.4/library/functions.html#eval


sample code: http://pythonprogramming.net
http://hkinsley.com
https://twitter.com/sentdex
http://sentdex.com
http://seaofbtc.com




Other Videos By sentdex


2015-06-03Progress bar - PyQt with Python GUI Programming tutorial 9
2015-06-01Check box - PyQt with Python GUI Programming tutorial 8
2015-05-31Pop up message - PyQt with Python GUI Programming tutorial 7
2015-05-30Toolbar - PyQt with Python GUI Programming tutorial 6
2015-05-29Menubar - PyQt with Python GUI Programming tutorial 5
2015-05-28Button Functions - PyQt with Python GUI Programming tutorial 4
2015-05-27Buttons - PyQt with Python GUI Programming tutorial 3
2015-05-26Application Structure - PyQt with Python GUI Programming tutorial 2
2015-05-25Intro/basic GUI - PyQt with Python GUI Programming tutorial
2015-05-24Exec - Python programming tutorial
2015-05-23Python Eval programming tutorial
2015-05-22Python Pickle Module for saving objects (serialization)
2015-05-21Graphing Live Twitter Sentiment - Language Processing With Python and NLTK p.21
2015-05-20Twitter Sentiment Analysis - Natural Language Processing With Python and NLTK p.20
2015-05-19Sentiment Analysis Module - Natural Language Processing With Python and NLTK p.19
2015-05-18Better training data - Natural Language Processing With Python and NLTK p.18
2015-05-16Investigating Bias - Natural Language Processing With Python and NLTK p.17
2015-05-16Combining Algos with a Vote - Natural Language Processing With Python and NLTK p.16
2015-05-16Scikit-Learn incorporation - Natural Language Processing With Python and NLTK p.15
2015-05-15Save Classifier with Pickle - Natural Language Processing With Python and NLTK p.14
2015-05-14Naive Bayes - Natural Language Processing With Python and NLTK p.13



Tags:
Python (Programming Language)
Eval
Tutorial (Media Genre)