🛠️ Steven Gong

Search

SearchSearch

Dec 21, 2022, 1 min read

https://realpython.com/python-bitwise-operators/ To print out in binary, use

print(f"{42:b}")  # Print 42 in binary # 101010
 
bin(42) #'0b101010'

Graph View

Backlinks

  • Bits and Bytes

Created with Quartz, © 2025

  • Blog
  • LinkedIn
  • Twitter
  • GitHub