Test set vs dict.
This commit is contained in:
parent
75013adb20
commit
6b4b7fbff3
20
main.py
20
main.py
@ -1,17 +1,3 @@
|
||||
#Bool tests
|
||||
print(bool(None))
|
||||
print(bool("abc"))
|
||||
print(bool(1))
|
||||
print(bool(0))
|
||||
print(int(False))
|
||||
print(int(True))
|
||||
x = ""
|
||||
print(bool(x))
|
||||
x = None
|
||||
print(bool(x))
|
||||
x = 0j
|
||||
print(bool(x))
|
||||
def dummy():
|
||||
pass
|
||||
print(dummy)
|
||||
print(dummy())
|
||||
a = {1, 2}
|
||||
b = {"a":1, "b":2}
|
||||
print(type(a), type(b))
|
||||
|
Loading…
Reference in New Issue
Block a user