Code a program in Python to convert a text into its corresponding binary representation.
Text: Hello World!
def bin_from_text(text):
    bin_text = ""
    for char in text:
        bin_text += bin(ord(char)).lstrip("0b") + " "
    return bin_text