To create the Hello program in python, open the IDE/Text Editor write the code python hello code mention below
print("Hello Python User")
save the file by name "Hello.py" where Hello is the name of file and ".py" is the python file extension. After saving the file use the run button on IDE/Text Editor to run the code, if everything is correct you are getting the output in IDE/Text Editor console
Hello Program example over the Jupyter Notebook
Import Tkinter: The import tkinter as tk line brings in the necessary functions and classes from the Tkinter library, which is built into Python and provides tools for creating desktop applications with graphical elements. We use tk as a shorthand for tkinter to make the code more concise.
Create the Window: window = tk.Tk() creates the main window for our application. Think of this as the canvas on which you will place other widgets like labels, buttons, and text boxes.
Set the Title: window.title("Hello User") sets the text that will be displayed in the title bar of the window. In this case, it will show "Hello User".
Start the Event Loop: window.mainloop() is crucial. It starts the Tkinter event loop. This loop continuously listens for events (like mouse clicks, keyboard input, or the user closing the window) and updates the display accordingly. Without mainloop(), the window would briefly appear and then close immediately. It keeps the window open and responsive until the user decides to close it.