User Profile

Collapse

Profile Sidebar

Collapse
barks33
barks33
Last Activity: Apr 8 '10, 02:49 AM
Joined: Apr 6 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • barks33
    replied to Ceasar Cipher help
    and it all formatted wrong... i had all the correct spacing by the way just failed in the box.
    See more | Go to post

    Leave a comment:


  • barks33
    started a topic Ceasar Cipher help

    Ceasar Cipher help

    Hi all, im writing a caesar cipher and ive done most of the program (see below)
    Code:
    def decrypt(ciphertext, shift):
        decrytped_text = " "
    
    
        for letter in ciphertext:
            if letter.isalpha():
                num = ord(letter)
                num += key
    
                if letter.isupper():
                    if num > ord('Z'):
                        num -= 26
    ...
    See more | Go to post
    Last edited by bvdet; Apr 7 '10, 06:01 AM. Reason: Add code tags
No activity results to display
Show More
Working...