summaryrefslogtreecommitdiffhomepage
path: root/python.html.markdown
diff options
context:
space:
mode:
authorJulien M'Poy <julien.mpoy@gmail.com>2017-11-08 13:29:24 +0100
committerJulien M'Poy <julien.mpoy@gmail.com>2017-11-08 13:29:24 +0100
commit5e81853768c0f3cc55c05e0dfec18773045df952 (patch)
treeb62c3fb0bfc6de3318e962b330e163f3d65cdfa6 /python.html.markdown
parent20893f5d83b4f7a1585bac9e7656d6af46183262 (diff)
parent6ce71c56d6affb57a3537a2732485a4918306d4b (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'python.html.markdown')
-rw-r--r--python.html.markdown6
1 files changed, 6 insertions, 0 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 946cbc0c..89fa7046 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -363,6 +363,12 @@ filled_set | other_set # => {1, 2, 3, 4, 5, 6}
# Check for existence in a set with in
2 in filled_set # => True
10 in filled_set # => False
+10 not in filled_set # => True
+
+# Check data type of variable
+type(li) # => list
+type(filled_dict) # => dict
+type(5) # => int
####################################################