Hi, I have a question
When we use not we get the output as True
my_bool = False
print(not my_bool)
we get the output here as True
Whereas why is the output -1 here?
my_bool = False
print(~ my_bool)
we get the output as -1. What does it indicate ? Shouldn’t we get the same output as the previous one as not is represented by (~) .