x = "01100001"
How do i convert this string into ASCII
Expected Result:
print(x.somefunction()) Output: a
Use following one liner
x = chr(int('010101010',2))
will work.