A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.w3schools.com/python/ref_func_eval.asp below:

Website Navigation


Python eval() Function

Python eval() Function

❮ Built-in Functions

Example

Evaluate the expression 'print(55)':

x = 'print(55)'
eval(x)

Try it Yourself » Definition and Usage

The eval() function evaluates the specified expression, if the expression is a legal Python statement, it will be executed.

Syntax

eval(expression, globals, locals)

Parameter Values Parameter Description expression A String, that will be evaluated as Python code globals Optional. A dictionary containing global parameters locals Optional. A dictionary containing local parameters

❮ Built-in Functions

Track your progress - it's free!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4