Write a program to display two labels with different colored background Python

from tkinter import Tk, Label, Y, RIGHT 
root = Tk()
label1 = Label(root, text='Welcome To Python!', background='red')
label2 = Label(root, text='Have a Good Day', background='green')
label1.pack(fill= Y, padx=10, ipady=25, side=RIGHT)  # Pack from right to left
label2.pack(fill= Y, padx=20, ipady=40, side=RIGHT)