"""
Quick, Pythonic approach
"""

# Prompt the user to input a binary number as a string.
binary_string = input("Please enter the binary representation of a number: ")

# Print the decimal representation of the binary number.
print(f"The decimal representation of your number is {int(binary_string, 2)}")
