Python Program to encrypt a message by caesar cipher

msg="HelloWorld"
i=0
while i<len(msg):
	letter=msg[i]
	print(chr(ord(letter)+3),end=' ')
	i+=1

Output :
encrypt