binary_str = "11011"decimal_number = int(binary_str, 2)print(decimal_number)
Standard input is empty
27
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!