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.