This code listing shows you how to show a hello world greeting in Python. For the purpose of this example, we did this in Visual Studio Code.
Code listing to show hello world in Python
Below is the code listing for this program.
from tkinter import *
root = Tk()
root.title('Window greeting')
root.geometry('600x400')
greeting = Label(text='Hello, welcome to Python!', font='Arial')
greeting.pack()
root.mainloop()
Output
Here is the output for the above program.
Developer’s note
If you have any questions or comments, then send us an email at support@techronology.com.
Python page
Click on the button below to go to our Python page.
Python is a high-level computer programming language. If you want more information on Python, then visit Python Software Foundation.