We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I think you have it dead on, for anybody who still doesn't understand how the ord(c) >> 5 part works, this is the binary representation of characters and digits:
The first 2 binary digits will separate the characters into digits, lower case, upper case. So right shifting the value of ord(c) will just give those digits, e.g.
ginortS
You are viewing a single comment's thread. Return to all comments →
I think you have it dead on, for anybody who still doesn't understand how the ord(c) >> 5 part works, this is the binary representation of characters and digits:
The first 2 binary digits will separate the characters into digits, lower case, upper case. So right shifting the value of ord(c) will just give those digits, e.g.