anonymous
  • anonymous
Caesar Cipher problem. I spend almost 6 hours to code def build_decoder(shift): I am stuck. can anybody help me out?
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
My code is here but still producing same thing as encoder UPPER = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ ' LOWER = 'abcdefghijklmnopqrstuvwxyz ' decoder = {} encoder = build_coder(shift).copy() for deUP in UPPER: decoder[deUP] = encoder.get(deUP) return decoder
anonymous
  • anonymous
Hi, This is what I have for this code: decoder = {} encoder = build_encoder(shift) encoder_keys = encoder.keys() #This creates a list containing the keys in the encoder encoder_values = encoder.values() #This creates a list containing values in the encoder for i in range(len(encoder_keys)): decoder[encoder_values[i]] = encoder_keys[i] #switches the key value pairs return decoder Hope that makes sense.

Looking for something else?

Not the answer you are looking for? Search for more explanations.