"Python" using bin() and int() function
Easy to understand and using bin() and int() functions\nSimple python3 solution\n\nclass Solution:\n    def concatenatedBinary(self, n: int) -> int:\n        b,
**Easy to understand and using bin() and int() functions**\n*Simple python3 solution*\n```\nclass Solution:\n    def concatenatedBinary(self, n: int) -> int:\n        b, m = [], (10 ** 9) + 7\n        for i in range(1, n + 1):\n            s = bin(i)\n            b.append(s[2:])\n        s = \'\'.join(b)\n        return int(s, 2) % m\n```
['Python', 'Python3']