1. Write a python Tkinter program to create a window with its title and label to the window.
The output is:
Sample Answer:
import tkinter as tk window = tk.Tk() window .title("Tkinter Exercise") my_label = tk.Label(window, text="Welcome to your first tkinter exercise!") my_label.grid(column=0, row=0) window .mainloop()
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)