eval combines values from dictionary : Eval : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Eval »

 

eval combines values from dictionary


scope = {} 
scope['x'
scope['y'
eval('x * y', scope

scope = {}
exec 'x 2' in scope
eval('x*x', scope)



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Buildin Function
» Eval