diff options
author | Meisyarah Dwiastuti <meisyarah.dwiastuti@gmail.com> | 2017-10-31 09:54:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-31 09:54:09 +0100 |
commit | 3ffb8256ae007b55df71f63de66428b51f64a003 (patch) | |
tree | 111d53e0cd50529060ad62dd0085475cd205e6a3 | |
parent | 61c8a084341b006e97ef0ad3f4f66e29db2b8239 (diff) |
Add data type checking examples
-rw-r--r-- | python.html.markdown | 6 |
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 #################################################### |