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
|
a = {1, 2}
|
||||||
print(bool(None))
|
b = {"a":1, "b":2}
|
||||||
print(bool("abc"))
|
print(type(a), type(b))
|
||||||
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())
|
|
||||||
|
Loading…
Reference in New Issue
Block a user