Merge pull request #2991 from meisyarahd/master

[python/en] Add data type checking examples
This commit is contained in:
Pratik Karki 2017-11-06 19:01:29 +05:45 committed by GitHub
commit d8cc680035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
####################################################