Learning python - 3rd Day (Night - 2)

 Watched this tutorial: Click here


Basically I learnt about numbering system conversion.

They are:

  • Binary > Decimal           (Example:  Input: 0b0101   Output: 5            )
  • Decimal > Binary           (Example:  Input: bin(5)     Output: '0b0101' )
  • Decimal > Octal             (Example:  Input: oct(20)   Output: '0o24'      )
  • Decimal > Hexadecimal (Example:  Input: hex(78)  Output: '0x4e'      )
  • Hexadecimal > Decimal (Example:  Input: 0x4e       Output: 78           )
  • Octal > Decimal              (Example: Input: 0o24       Output: 20           )
You can do more conversions between the 4 numbering types like these.

Comments

Popular posts from this blog

Apple iPad Air (2022) Specifications and Review in 2023

17-year-old suspect in fatal stabbing at Taylor Swift-themed dance event ID’d

Exercise vs Diet