2 ways to get BINARY format of Python integer 🐍 #python #shorts 学習 Twitter Facebook はてブ Pocket LINE コピー 2023.02.08 2023.02.07 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.
コメント
Want more?? Subscribe for fresh Python tips and tutorials: https://www.youtube.com/@ModernPython?view_as=subscriber?sub_confirmation=1