# take input
      num = int(input('Enter any decimal number: '))
      # display result
      print('Binary value:', bin(num))
      

      Python language logo
      Decimal to Binary

      beginner
      strings
      encoding

      Python program to Convert Decimal to Binary

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.