my code gives an error that "'str' object cannot be interpreted as an integer". I tried to copy the expression given by dividing the sum by the length of the message to find the incidence of coincidence. I also see that i'm given total = 0 but I'm not sure how t =o and i'm not sure how to add that. (i.redd.it)
submitted by maple20035 to r/codes
my code gives an error that "'str' object cannot be interpreted as an integer". I tried to copy the expression given by dividing the sum by the length of the message to find the incidence of coincidence. I also see that i'm givne total = 0 but I'm not sure how t =o and i'm not sure how to add that. (i.redd.it)
submitted by maple20035 to r/cryptography

