What's the difference between not and ~ in python

Solution 1:

This is how it is in Python.

'~' is a bitwise operator

whereas 'not' is a logical opeartor