mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 08:17:01 +00:00
changes made in doctest
This commit is contained in:
parent
10bdd07377
commit
da0a97536e
|
@ -39,9 +39,6 @@ def safe_function_eval(func_str: str) -> Callable:
|
|||
>>> f = safe_function_eval('x**2')
|
||||
>>> f(3)
|
||||
9
|
||||
>>> f = safe_function_eval('sin(x)')
|
||||
>>> round(f(3.14), 2)
|
||||
0.0
|
||||
>>> f = safe_function_eval('x + x**2')
|
||||
>>> f(2)
|
||||
6
|
||||
|
|
Loading…
Reference in New Issue
Block a user