input: Write a python function to implement a Caesar cipher encryption algorithm.
  assert caesar_cipher_encrypt("HELLO WORLD", 3) == "KHOOR ZRUOG"
  assert caesar_cipher_encrypt("python", 5) == "udymts"
  assert caesar_cipher_encrypt("abc xyz", 2) == "cde zab"
output: def caesar_cipher_encrypt(text, shift):
      encrypted_text = []
      for char in text:
          if char.isalpha():
              shift_base = 65 if char.isupper() else 97
              encrypted_char = chr((ord(char) - shift_base + shift) % 26 + shift_base)
              encrypted_text.append(encrypted_char)
          else:
              encrypted_text.append(char)
      return ''.join(encrypted_text)