Elif syntax error


# message entered
message = str(input ("enter message to be shifted: "))

#variable to store encrypted message
shifted_message = ""

for letter in message:
    if letter == "A" or "a":
        shifted_message += "d"
    print (shifted_message)

    elif letter == "B" or "b":
        shifted_message += "e"
    print(shifted_message)




Am getting a syntax error here, can someone help?

an elif needs to be after an if or another elif, which its currently not because of the print (shifted_message)

Thank you l was just trying to see if l am getting the desired output