Web Reference: So ord(B[0]) - ord('0') is the int 1 when B[0] is the string '1', and it is the int 0 when B[0] is the string '0'. In short, it is just a way to convert the string to an int. int(B[0]) would have been simpler, but the author is avoiding int, since if you have int then the entire piece of code could be replaced by int(B, 2). Apr 23, 2015 ยท 76 I found out about Python's ord () function which returns corresponding Unicode codepoint value. But what is the opposite function, i.e. get char value by int? Edit: I'm new to SO, and couldn't find the answer here, so decided to post in order to everyone could find it more easily, although the answer is quite obvious. ord is a function that takes a character and returns the number that unicode associates that character with. The way unicode structures the digits 0-9 ord("9")-ord("0") will result in 9. ord of 0 is 48 and the digits count up from there: "1" is 49, "2" is 50 etc.
YouTube Excerpt: Python
Net Worth Profile Overview
Ord Function In Python Net Worth 2026: Salary, Income & Wealth Net Worth & Biography

Estimated Worth: $74M - $112M
Salary & Income Sources

Career Highlights & Achievements

Assets, Properties & Investments
This section covers known assets, real estate holdings, luxury vehicles, and investment portfolios. Data is compiled from public records, financial disclosures, and verified media reports.
Last Updated: March 29, 2026
Net Worth Outlook & Future Earnings

Disclaimer: Disclaimer: Net Worth estimates are based on publicly available data, media reports, and financial analysis. Actual numbers may vary.








