Checking for the character immediately before and after of # is same The before and after character are same: “moon#night” ight” # n n “moo Before # character After # character True n = n Checking for the character immediately before and after of # is same The before and after character are same: “bat##ball” all” # # t b “ba Before # character After # character False t = b / w3resource.com