input: Write a python function to implement a basic encryption algorithm by shifting ASCII values of characters. 
  assert encrypt("hello", 3)=="khoor"
  assert encrypt("world", 1)=="xpsme"
  assert encrypt("abc", 2)=="cde"
output: def encrypt(text, shift):
      encrypted_text = ""
      for char in text:
          encrypted_char = chr(ord(char) + shift)
          encrypted_text += encrypted_char
      return encrypted_text