Python

f-strings in Python

Python f-strings or formatted strings are new way of formatting strings introduced in Python 3.6 under PEP-498. It’s also called literal string interpolation. They provide a better way to format strings and make debugging easier too. What are f-strings? Strings in Python are usually enclosed in β€œ ” (double quotes) or β€˜ β€˜ ( single …

f-strings in Python Read More »

Tkinter Python Program to get details from Form and feeding to excel sheet

We are getting data via the form and feeding that to excel sheets. Let’s look into it with the below example: import tkinter as tkimport xlwtroot = tk.Tk()# setting the windows sizeroot.geometry(“600×400”)# declaring string variable# for storing detailscid_var = tk.StringVar()cname_var = tk.StringVar()caddr_var = tk.StringVar()cstate_var = tk.StringVar()ccity_var = tk.StringVar()cmobile_var = tk.StringVar()cgender_var = tk.StringVar()cage_var = tk.StringVar()# defining …

Tkinter Python Program to get details from Form and feeding to excel sheet Read More »