def text2caesar(text,shift = 3): 
	"""
	Returns the encrypted text after encrypting the text with the given shift

		Parameters:
			text (str): The text that needs to be encrypted in Caesar's cipher
			shift (int): The shift that should be used to encrypt the text 

		Returns:
			result (str): The encrypted text
	"""
	result = "" 
 
	for i in range(len(text)): 
		char = text[i] 
  
		if char.isupper(): 
			result += chr((ord(char) + shift-65) % 26 + 65) 
		elif char.islower(): 
			result += chr((ord(char) + shift - 97) % 26 + 97) 
		else:
			result += char
	return result