title: Python Encryption & Decryption
body: <p>I am trying to encrypt a user-input message.</p>
  
  <p>My code: </p>
  
  <pre><code>#encrypt
  user_input = input ("Enter string: ")
  for char in user_input: #for every character in input
      cipher_num = (ord(char))+3%26 #using ordinal to find the number
      cipher= ''
      cipher = chr(cipher_num) # using chr to convert back to a letter
      cipher_text = '' #add all values to string
      cipher_text = (cipher_text+cipher)
  print (cipher_text)
  
  #decrypt
  for char in cipher_text: #for every character in the encrpted text
      decrypt_num = (ord(char))-3%26
      decrypt= ''
      decrypt = chr(decrypt_num)
      decrypt_text = ''
      decrypt_text = (decrypt_text+decrypt)
  print(decrypt_text)
  </code></pre>
  
  <p>The output I am receiving is- </p>
  
  <p>Enter string: abc</p>
  
  <p>f</p>
  
  <p>c</p>
  
  <hr>
  
  <p>Why is it only giving me the encrypted value of the last character in the string?</p>