input: Write a python function to encrypt a given text by shifting each character's ASCII value. For uppercase letters, shift by 7, and for lowercase letters, shift by 3.
  assert encrypt("Hello, World!") == 'Olssv,;Wvysc$'
  assert encrypt("Python") == 'W|{vruq'
  assert encrypt("abcXYZ") == 'defcf`'
output: def encrypt(text):
      encrypted_text = ''
      for char in text:
          if 'A' <= char <= 'Z':
              encrypted_text += chr((ord(char) - ord('A') + 7) % 26 + ord('A'))
          elif 'a' <= char <= 'z':
              encrypted_text += chr((ord(char) - ord('a') + 3) % 26 + ord('a'))
          else:
              encrypted_text += chr(ord(char) + 7) if char.isupper() else chr(ord(char) + 3)
      return encrypted_text