exec executes either a code object or a string representing Python code. : Exec : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Exec »

 

exec executes either a code object or a string representing Python code.


exec """
x = 0
print  'x is currently:', x
while  x < 5:
    x += 1
    print 'incrementing x to:', x
"""



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Function
» Exec