Test set vs dict.

This commit is contained in:
Captain ALM 2022-11-30 17:36:56 +00:00
parent 75013adb20
commit 6b4b7fbff3
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

20
main.py
View File

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