Create a Python program that takes a varchar input and encodes it using the Base 64 algorithm.
"Hello World!"
import base64

string = "Hello World!"

data_bytes = string.encode('ascii')
encoded_string = base64.b64encode(data_bytes)

print(encoded_string)