Boolean Operators and Algebra (Theory of Python) (Python Tutorial)

preview_player
Показать описание
Let's dive into the not, and, and or operators in Python and understand how Booleans and Boolean algebra works. We're going to cover all of the useful rules that can help simplify your code.

Thank you!
Рекомендации по теме
Комментарии
Автор

this is the solution for cache function without if statment
def cache(fn):
res=None
def wrapper(a, b):
nonlocal res
res = res or fn(a, b)
return res
return wrapper


@cache
def add(a, b):
return a+b

babahs
Автор

Demogorgon thats a D&D monster right?

bagok
visit shbcf.ru