I was wondering if someone could tell me the pythonic way to check out the following.
I have a 6 bit binary number and want to check with its decimal values. Using mathe
To add to the responses of the others, you should read about the recommended Python style in PEP 8.
With your if version, the brackets are undesirable and spacing is desirable:
if
if a == 1: pass elif a == 2: pass elif a == 3: pass else: pass