title: How do I make it so the code only shifts the letters and not the space?
body: <pre><code>#get string and shift from user
  
  string = input('Please enter a string to be ciphered: ')
  shift = input('Please enter a shift amount between 0 and 25: ')
  
  #strings are immutable so it must be converted to a list
  s=list(string)
  
  #now this will convert each character based on the shift
  
  for i in range(0,len(s)):
      s[i]=chr(ord(s[i]) + int(shift))
  
  
  print ("".join(s))
  </code></pre>