summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPratik Karki <predatoramigo@gmail.com>2017-11-06 19:01:29 +0545
committerGitHub <noreply@github.com>2017-11-06 19:01:29 +0545
commitd8cc6800359e73c4a778d74bc9e560b022f98dc8 (patch)
treefaf8b54fa01b47d6025c3597beebbd16e6fab3e3
parente42fa72be6e4b25730d163f601343978dc9fdbe9 (diff)
parent3ffb8256ae007b55df71f63de66428b51f64a003 (diff)
Merge pull request #2991 from meisyarahd/master
[python/en] Add data type checking examples
-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
####################################################