Исправление hateyoufeel, (текущая версия) :
Нет.
▲ ~ python
Python 3.7.6 (default, Dec 18 2019, 19:23:55)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> math.pi
3.141592653589793
>>> def circle_length(r):
... return 2 * math.pi * r
...
>>> circle_length(1)
6.283185307179586
>>> math.pi = 4
>>> circle_length(1)
8
▲ ~ ghci
GHCi, version 8.6.5: http://www.haskell.org/ghc/ :? for help
Prelude> pi
3.141592653589793
Prelude> let circleLen r = 2 * pi * r
Prelude> circleLen 1
6.283185307179586
Prelude> let pi = 4
Prelude> circleLen 1
6.283185307179586
Исходная версия hateyoufeel, :
▲ ~ python
Python 3.7.6 (default, Dec 18 2019, 19:23:55)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> math.pi
3.141592653589793
>>> def circle_length(r):
... return 2 * math.pi * r
...
>>> circle_length(1)
6.283185307179586
>>> math.pi = 4
>>> circle_length(1)
8