Write a function that takes a string representing the binary representation of a number, computes the number in decimal and returns this value. The string consists of "." and "-" characters, where "." represents 1 and "-" represents 0. For example, ".--.." corresponds to 10011, which is equal to 1 * 16 + 0 * 8 + 0 * 4 + 1 * 2 + 1 * 1 = 19. So the function returns 19 for an input of ".--..". """
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here