From ca6cd5f0ca27a927f9afe5f6248916930eb8cbb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= <sornjure@gmail.com> Date: Thu, 27 Dec 2018 01:27:28 +0100 Subject: [PATCH] In operator --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 73362e6..8ee622b 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ List <list>.extend(<list>) <list> += [<el>] <list> += <list> +<bool> = <el> in <list> ``` ```python @@ -59,6 +60,7 @@ Dictionary <view> = <dict>.items() <value> = <dict>.get(key, default) # Returns default if key does not exist. <value> = <dict>.setdefault(key, default) # Same, but also adds default to dict. +<bool> = key in <dict> <dict>.update(<dict>) ``` @@ -92,6 +94,7 @@ Set <set>.add(<el>) <set>.update(<set>) <set>.clear() +<bool> = <el> in <set> ``` ```python