I just wanted to know what does the square bracket mean in check[]
and what does this square bracket do, because all I know that {}
are dictionaries and []
are lists.
n = int(input().strip())
check = {True: "Not Weird", False: "Weird"}
print(check[
n%2==0 and (
n in range(2,6) or
n > 20)
])