Group of Executable Statements : Exec : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Exec »

 

Group of Executable Statements


exec_code = compile("""
req = input('Count how many numbers? ')
for eachNum in range(req):
     print eachNum
"""'', 'exec')


exec exec_code



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Buildin Function
» Exec