Exec - Python programming tutorial

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



Category:
Tutorial
Duration: 5:06
38,603 views
504


This function supports dynamic execution of Python code. object must be either a string or a code object. If it is a string, the string is parsed as a suite of Python statements which is then executed (unless a syntax error occurs). [1] If it is a code object, it is simply executed. In all cases, the code that’s executed is expected to be valid as file input (see the section “File input” in the Reference Manual). Be aware that the return and yield statements may not be used outside of function definitions even within the context of code passed to the exec() function. The return value is None.
Source: https://docs.python.org/3.4/library/functions.html#exec

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




Other Videos By sentdex


2015-06-04Drop downs and styles - PyQt with Python GUI Programming tutorial 10
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



Tags:
Python (Programming Language)
Exec
Tutorial (Media Genre)
programming