binary_str = input("Enter a Binary number to convert it to Decimal :") decimal_num = int(binary_str, 2) print(decimal_num)