The code that has been attatched (i couldnt post it for some reason) produces the error message:
Traceback (most recent call last):
File "filename", line 36, in <module>
for i in range(len(bytesmessage)/7):
TypeError: 'float' object cannot be interpreted as an integer

In this line
for i in range(len(bytesmessage)/7):
The variable bytesmessage should always be multiples of seven because its binary. I tried to make a loop which loops the amount of 7 binary digits but its unable to because it's a float?

Could someone help me solve this as I cant see why it would not work?
Thanks for reading.

Are you using Python2 or Python3?
'/' changed from an integer division to a float division.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.