Hi everyone. I'm new here and would like some help with some Python code. I'm trying to use modulus to shift decode an input line (regular sentence or word like "Bill") but I keep going over the regular alphabet in ascii and the "B" becomes an "=" How do I make "B" become "W" or any other letter that goes over the regular alphabet?
c_string = raw_input("Enter desired sentence to convert: ")
cs_string = 5
ci_string = cs_string % 26
upper_string = c_string.upper()
for ch in upper_string:
ascii = ord(ch)
if ch.isalpha():
ascii -= cs_string
if ascii > ord("z"):
ascii -= 26
print chr(ascii),