2 ways to get BINARY format of Python integer 🐍 #python #shorts

学習

In this quick video, I’ll show you 2 ways to get a BINARY format of an integer in Python. There is the built-in function bin(), which will create a binary formated number. Then you can use f-strings with x:b to convert integer into binary string.

コメント

  1. ModernPython より:

    Want more?? Subscribe for fresh Python tips and tutorials: https://www.youtube.com/@ModernPython?view_as=subscriber?sub_confirmation=1

タイトルとURLをコピーしました