en
Feedback
Coding_knowledge

Coding_knowledge

Open in Telegram

💡 Your Coding Journey Starts Here! Get free courses, coding resources, internships, job updates & much more. Stay ahead in tech with us! ❤️🚀 Join our WhatsApp group👇 https://whatsapp.com/channel/0029Vaa7CVhCRs1rxJzy1n3D

Show more

📈 Analytical overview of Telegram channel Coding_knowledge

Channel Coding_knowledge (@coding_knwledge01) in the English language segment is an active participant. Currently, the community unites 79 401 subscribers, ranking 1 561 in the Technologies & Applications category and 3 823 in the India region.

📊 Audience metrics and dynamics

Since its creation on невідомо, the project has demonstrated rapid growth, gathering an audience of 79 401 subscribers.

According to the latest data from 02 September, 2026, the channel demonstrates stable activity. Although there has been a change in the number of participants by -850 over the last 30 days and by -12 over the last 24 hours, overall reach remains high.

  • Verification status: Not verified
  • Engagement rate (ER): The average audience engagement rate is 9.91%. Within the first 24 hours after publication, content typically collects 2.57% reactions from the total number of subscribers.
  • Post reach: On average, each post receives 7 865 views. Within the first day, a publication typically gains 2 040 views.
  • Reactions and interaction: The audience actively supports content: the average number of reactions per post is 19.
  • Thematic interests: Content is focused on key topics such as q&a, goody, api, stack, analyst.

📝 Description and content policy

The author describes the resource as a platform for expressing subjective opinions:
💡 Your Coding Journey Starts Here! Get free courses, coding resources, internships, job updates & much more. Stay ahead in tech with us! ❤️🚀 Join our WhatsApp group👇 https://whatsapp.com/channel/0029Vaa7CVhCRs1rxJzy1n3D

Thanks to the high frequency of updates (latest data received on 03 September, 2026), the channel maintains relevance and a high level of publication reach. Analytics show that the audience actively interacts with content, making it an important point of influence in the Technologies & Applications category.

79 401
Subscribers
-1224 hours
-1677 days
-85030 days
Posts Archive
Tkinter Application to Switch Between Different Page Frames 🚀🔥 Sometimes it happens that we need to create an application with several pops up dialog boxes, i.e Page Frames. Here is a step by step process to create multiple Tkinter Page Frames and link them! This can be used as a boilerplate for more complex python GUI applications like creating interfaces for Virtual Laboratories for experiments, classrooms, etc. Here are the steps: Create three different pages. Here we have three different pages, The start page as the home page, page one, and page two. Create a container for each page frame. We have four classes. First is the tkinterApp class, where we have initialized the three frames and defined a function show_frame which is called every time the user clicks on a button. The StartPage is simple with two buttons to go to Page 1 and Page 2. Page 1 has two buttons, One for Page 2 and another to return to Start Page. Page 2 also has two buttons, one for Page 1 and others to return to StartPage. This is a simplistic application of navigating between Tkinter frames. This can be used as a boilerplate for more complex applications and several features can be added. The App starts with the StartPage as the first page, as shown in class tkinterApp. Here in StartApp, there are two buttons. Clicking on a button takes you to the respective Page. You can add images and graphs to these pages and add complex functionality. The pages have two buttons as well. Every time a button is pressed show_frame is called, which displays the respective Page.

Output:-
Output:-

Getting into the next aspect, first of all, we have to create a list containing all the buttons that need to appear on the calculator. In this list, we will represent some characters by encoding them. Since the “.grid()” function works with row and column parameters. Therefore, we will take two variables for the same and then we run a “for” loop for creating the buttons by “.Buttons()”. The parameters under this widget are the same as before. But, in addition to this, it has a “command” parameter which will call the “click()” function. It is a UDF that consists of the block of code which will add the actual functionalities of the calculator. With that, we will set the positions for the buttons. To get the buttons systematically , according to the size of the window, we will use a condition. The condition says that if the column exceeds 7 then the row must get changed to place another button. That’s how we will be able to see all the buttons on the window. The last thing is to add the functionalities, we will make a UDF named “click()”. Under this, with the help of an “if-else” ladder, we will check for the buttons that get pressed. First, we will get the information stored in the variable about the type of button pressed. To handle any of the syntax errors while calculating we will run a try and except block. The first button stated “C” which is for clearing the last digit. To get this task done, we will first delete the last entered value by slicing. The next step is common to all operations, for displaying the result, we first have to delete the whole thing and then insert that particular result and this will be possible by “.delete()” & “.insert()”. The result will get stored in the variable. Next button “CE”, to clear everything. It is being done by “.delete(0,” end”)”. The parameters passed state that the particular must get deleted from starting to end The “square root” functionality is being added by using a function from the math module i.e. “.sqrt()”. The values passed under this function as parameters are under the “eval()” function which will allow the evaluation of arbitrary Python expressions from a string-based or compiled-code-based input. Same as for all the other buttons such as, we will use the functions from the math module. pi: math.pi sinh: math.sinh() cosh: math.cosh() tanh: math.tanh() cosθ: math.cos() sinθ: math.sin() tanθ: math.tan() ln: math.log2() deg: math.degrees() rad: math.radians() e: math.e log10: math.log10() x!: math.factorial()

# Importing the library from future.moves import tkinter import math # To provide functionalities def click(val): e = entry.get() # getting the value ans = " " try: # To clear the last inserted text if val == "C": e = e[0:len(e) - 1] # deleting the last entered value entry.delete(0, "end") entry.insert(0, e) return # To delete everything elif val == "CE": entry.delete(0, "end") # Square root elif val == "√": ans = math.sqrt(eval(e)) # pi value elif val == "π": ans = math.pi # cos value elif val == "cosθ": ans = math.cos(math.radians(eval(e))) # sin value elif val == "sinθ": ans = math.sin(math.radians(eval(e))) # tan Value elif val == "tanθ": ans = math.tan(math.radians(eval(e))) # 2π value elif val == "2π": ans = 2 * math.pi # cosh value elif val == "cosh": ans = math.cosh(eval(e)) # sinh value elif val == "sinh": ans = math.sinh(eval(e)) # tanh value elif val == "tanh": ans = math.tanh(eval(e)) # cube root value elif val == chr(8731): ans = eval(e) ** (1 / 3) # x to the power y elif val == "x\u02b8": entry.insert("end", "**") return # cube value elif val == "x\u00B3": ans = eval(e) ** 3 # square value elif val == "x\u00B2": ans = eval(e) ** 2 # ln value elif val == "ln": ans = math.log2(eval(e)) # deg value elif val == "deg": ans = math.degrees(eval(e)) # radian value elif val == "rad": ans = math.radians(eval(e)) # e value elif val == "e": ans = math.e # log10 value elif val == "log10": ans = math.log10(eval(e)) # factorial value elif val == "x!": ans = math.factorial(eval(e)) # division operator elif val == chr(247): entry.insert("end", "/") return elif val == "=": ans = eval(e) else: entry.insert("end", val) return entry.delete(0, "end") entry.insert(0, ans) except SyntaxError: pass # Created the object root = tkinter.Tk() # Setting the title and geometry root.title("Scientific Calculator") root.geometry("680x486+100+100") # Setting the background color root.config(bg="black") # Entry field entry = tkinter.Entry(root, font=("arial", 20, "bold"), bg="black", fg="white", bd=10, width=30) entry.grid(row=0, column=0, columnspan=8) # buttons list button_list = ["C", "CE", "√", "+", "π", "cosθ", "tanθ", "sinθ", "1", "2", "3", "-", "2π", "cosh", "tanh", "sinh", "4", "5", "6", "*", chr(8731), "x\u02b8", "x\u00B3", "x\u00B2", "7", "8", "9", chr(247), "ln", "deg", "rad", "e", "0", ".", "%", "=", "log10", "(", ")", "x!"] r = 1 c = 0 # Loop to get the buttons on window for i in button_list: # Buttons button = tkinter.Button(root, width=5, height=2, bd=2, text=i, bg="black", fg="white", font=("arial", 18, "bold"), command=lambda button=i: click(button)) button.grid(row=r, column=c, pady=1) c += 1 if c > 7: r += 1 c = 0 # Makes window on loop root.mainloop()

Introduction: In this project, we build up the scientific calculator using the tkinter library of Python. It is the standard GUI library for Python. With its help, we prepared the GUI for the project, and to add the functionalities of the scientific calculator, we used a math module. So, scroll down and get to know the steps! Explanation: The first step is importing all the necessary libraries using the “import” keyword. For the latest version, the tkinter module comes under the future module. So first, we have to install the future module with the help of the command “pip install ”. The future module is a built-in module in Python that inherits new features which is available in the latest Python versions. With “future. moves” we will import the tkinter module. In the next step, to create an object of the tkinter frame will use “.Tk()”.With this, we will also set the title and geometry of our tkinter application. To set the background color for the project we will use “.config(bg=)”. And so, with that, we have set black as the background color for this project. We will also add an image by the corner to give it a creative aspect. With the help of “.PhotoImage(file=)”, we will load the picture, by using the “.Label()” we will make the label widget for this, and “.grid(row=,column= )” will help to get it placed well on the window. While working on this project, we need to fulfill three aspects. Space for the calculation Buttons for the calculation Adding the functionalities Talking about the first aspect, we will create an entry widget by “.Entry()”. Under this, we have provided the parameter such as root – window object font – The font style in which we want the information to get entered bg – Stating the background color for the space fg – Stating the color of the text appeared bd – Border of the entry widget width – width of the entry widget Finally, with the help of “.grid()” we will set the position for the entry widget. Source Code:

Master Frontend to Backend in 150 Days👩‍💻 Days:1 - 30 Learn HTML, CSS, and JavaScript Days: 31 - 60 Master React.js and Build Interfaces Days: 61 - 90 Explore MongoDB and learn how to work with Databases Days: 91 - 120 Dive into Node.js and learn the basics of server-side development Days: 121 - 150 Bring it all together by learning Express.js and building full-stack applications >> Free Hand Written Notes💯 >> Free 400+ Interview Question✌ >> Free 550+ Projects Source Code🫶 Link is Here👇 https://bit.ly/frontend-to-backend-ebook

Master Frontend to Backend👩‍💻 In this Ebook You Get🥵 1. Complete Html, Css, JavaScritp, Bootstrap and React.js,MongoDB, Ex
Master Frontend to Backend👩‍💻 In this Ebook You Get🥵 1. Complete Html, Css, JavaScritp, Bootstrap and React.js,MongoDB, ExpressJS, AngularJS, NodeJS From Beginner to Advance 🥳(Complete Guidance on How to Create any Project From Scratch and How to Use Frontend and Backend in Real Life Project) 2. 550+ Html, CSS,Bootstrap , JavaScript and React.Js, MongoDB, ExpressJS, AngularJS, NodeJS Projects (Source Code)🤟🏻)🤟🏻 3. Free Hand-Written Notes Of🤯 >>HTML >>CSS >>JavaScript >>React.js >>MongoDB >>ExpressJS >> AngularJS >> NodeJS 400+ Most Asked Interview Questions Of👌🏻: >>HTML >>CSS >>JavaScript >>Bootstrap >>React >>MongoDB >>ExpressJS >> AngularJS >> NodeJS Complete Guidance on🥸 1. Web development 2. How to Do Freelancing and internships 3. Resume Click On This Link And Get Your Ebook Now👇 . . https://bit.ly/frontend-to-backend-ebook

Want to master Frontend to Backend ?
Anonymous voting

Output:-
Output:-

from tkinter import * import tkinter as tk from geopy.geocoders import Nominatim from tkinter import ttk,messagebox from timezonefinder import TimezoneFinder from datetime import datetime import requests import pytz root=Tk() root.title("Weather App") root.geometry("800x400+200+100") root.resizable(False,False) def getWeather(): try: city=text_field.get() geolocator=Nominatim(user_agent="geoapiExercises") location=geolocator.geocode(city) obj=TimezoneFinder() result=obj.timezone_at(lng=location.longitude,lat=location.latitude) print(result) home=pytz.timezone(result) local_time=datetime.now(home) current_time=local_time.strftime("%I:%M %p") clock.config(text=current_time) name.config(text="CURRENT WEATHER") # Add API Key Weather api="https://api.openweathermap.org/data/2.5/weather?q="+city+"&appid=b22d362851862b" json_data=requests.get(api).json() t.config(text=str(json_data['main']['temp'] - 273.15)) c.config(text=json_data['weather'][0]['main']) w.config(text=json_data['wind']['speed']) h.config(text=json_data['main']['humidity']) d.config(text=json_data['weather'][0]['description']) p.config(text=json_data['main']['pressure']) except Exception as e: messagebox.showerror("Weather App","Invalid Entry!!") #Add Search Bar image_search=PhotoImage(file="search_bar.png") searchbar_image=Label(image=image_search) searchbar_image.place(x=10,y=10) text_field=tk.Entry(root,justify="center",width=17,font=("poppins",18,"bold"),bg="#147886",border=0,fg="white") text_field.place(x=20,y=20) text_field.focus() #Add Search Icon image_search_icon=PhotoImage(file="search_icon.png") search_icon=Button(image=image_search_icon,borderwidth=0,cursor="hand2",bg="#147886",command=getWeather) search_icon.place(x=250,y=18) #Add Weather Logo image_logo=PhotoImage(file="weather_logo.png") weather_logo=Label(image=image_logo) weather_logo.place(x=250,y=90) #Add Information Box image_box=PhotoImage(file="information_box.png") information_box=Label(image=image_box) information_box.pack(padx=5,pady=5,side=BOTTOM) #Time name=Label(root,font=("arial",15,"bold")) name.place(x=30,y=100) clock=Label(root,font=("Merriweather",20)) clock.place(x=30,y=130) #Label label1=Label(root,text="WIND",font=("Merriweather",15,"bold"),fg="White",bg="#5AC9D9") label1.place(x=100,y=330) label2=Label(root,text="HUMIDITY",font=("Merriweather",15,"bold"),fg="White",bg="#5AC9D9") label2.place(x=210,y=330) label3=Label(root,text="DESCRIPTION",font=("Merriweather",15,"bold"),fg="White",bg="#5AC9D9") label3.place(x=360,y=330) label4=Label(root,text="PRESSURE",font=("Merriweather",15,"bold"),fg="White",bg="#5AC9D9") label4.place(x=570,y=330) t=Label(font=("arial",50,"bold"),fg="#ee666d") t.place(x=400,y=150) c=Label(font=("arial",20,"bold")) c.place(x=420,y=230) w=Label(text="...",font=("arial",16,"bold"),bg="#5AC9D9") w.place(x=110,y=360) h=Label(text="...",font=("arial",16,"bold"),bg="#5AC9D9") h.place(x=230,y=360) d=Label(text="...",font=("arial",16,"bold"),bg="#5AC9D9") d.place(x=370,y=360) p=Label(text="...",font=("arial",16,"bold"),bg="#5AC9D9") p.place(x=590,y=360) root.mainloop()

Create Weather App in Python 👇👇

Output:-
Output:-

# Importing the libraries from tkinter import * import pygame # initializing the pygame pygame.init() root = Tk() # Setting the title and geometry root.title("Music Box") root.geometry("1352x700+0+0") root.configure(background="white") # creating the Frames abc = Frame(root, bg="powder blue", bd=20, relief=RIDGE) abc.grid() abc1 = Frame(abc, bg="powder blue", bd=20, relief=RIDGE) abc1.grid() abc2 = Frame(abc, bg="powder blue", relief=RIDGE) abc2.grid() abc3 = Frame(abc, bg="powder blue", relief=RIDGE) abc3.grid() str = StringVar() str.set("Just like Music") #Functions for sound def value_Cs(): str.set("C#") sound = pygame.mixer.Sound("C#.wav") sound.play() def value_A(): str.set("A") sound = pygame.mixer.Sound("A.wav") sound.play() def value_B(): str.set("B") sound = pygame.mixer.Sound("B.wav") sound.play() def value_C(): str.set("C") sound = pygame.mixer.Sound("C.wav") sound.play() def value_Bb(): str.set("Bb") sound = pygame.mixer.Sound("Bb.wav") sound.play() def value_Gs(): str.set("G#") sound = pygame.mixer.Sound("G#.wav") sound.play() def value_Ds(): str.set("D#") sound = pygame.mixer.Sound("D#.wav") sound.play() def value_Fs(): str.set("F#") sound = pygame.mixer.Sound("F#.wav") sound.play() def value_G(): str.set("G") sound = pygame.mixer.Sound("G.wav") sound.play() def value_D(): str.set("D") sound = pygame.mixer.Sound("D.wav") sound.play() def value_E1(): str.set("E1") sound = pygame.mixer.Sound("E.mp3") sound.play() def value_E(): str.set("E") sound = pygame.mixer.Sound("E!.mp3") sound.play() def value_F(): str.set("F") sound = pygame.mixer.Sound("F!.mp3") sound.play() def value_F1(): str.set("F1") sound = pygame.mixer.Sound("F.mp3") sound.play() def value_C1(): str.set("C1") sound = pygame.mixer.Sound("C1.mp3") sound.play() def value_D1(): str.set("D1") sound = pygame.mixer.Sound("D1.mp3") sound.play() def value_Cs1(): str.set("C#1") sound = pygame.mixer.Sound("C#1.mp3") sound.play() def value_Ds1(): str.set("C#1") sound = pygame.mixer.Sound("D#1.mp3") sound.play() # Label Label(abc1, text="Piano Musical Keys", font=("arial", 25, "bold"), padx=8, pady=8, bd=4, width=59, bg="powder blue", fg="white", height=1, justify=CENTER).grid(row=0, column=0, columnspan=11) display = Entry(abc1, textvariable=str, font=("arial", 18, "bold"), width=35, bd=34, bg="powder blue", fg="black", justify=CENTER).grid(row=1, column=5, pady=1) # Buttons for keynotes btnCs = Button(abc2, height=6, width=4, bd=4, text="C#", font=("arial", 18, "bold"), bg="black", fg="white", command=value_Cs) btnCs.grid(row=0, column=0, padx=5, pady=5) btnDs = Button(abc2, height=6, width=4, bd=4, text="D#", font=("arial", 18, "bold"), bg="black", fg="white", command=value_Ds) btnDs.grid(row=0, column=1, padx=5, pady=5) btnSpace1 = Button(abc2, state=DISABLED, height=6, width=2, bg="powder blue", relief=FLAT) btnSpace1.grid(row=0, column=3, padx=0, pady=0) btnFs = Button(abc2, height=6, width=4, bd=4, text="F#", font=("arial", 18, "bold"), bg="black", fg="white", command=value_Fs) btnFs.grid(row=0, column=4, padx=5, pady=5) btnGs = Button(abc2, height=6, width=4, bd=4, text="G#", font=("arial", 18, "bold"), bg="black", fg="white", command=value_Gs) btnGs.grid(row=0, column=6, padx=5, pady=5) btnBb = Button(abc2, height=6, width=4, bd=4, text="Bb", font=("arial", 18, "bold"), bg="black", fg="white", command=value_Bb) btnBb.grid(row=0, column=8, padx=5, pady=5) btnSpace5 = Button(abc2, state=DISABLED, height=6, width=2, bg="powder blue", relief=FLAT) btnSpace5.grid(row=0, column=9, padx=0, pady=0) btnCs1 = Button(abc2, height=6, width=4, bd=4, text="C#1",

Creating GUI Piano Using Python 🔥🔥 Introduction: In this project, we are going to build a GUI piano by using different libraries of Python. With the help of the tkinter library, we will create the GUI for the project. As the name suggests, several keynotes of the piano will be there and by clicking them the sound will get produced accordingly. For playing the sound we will use the mixer module of the pygame library. Explanation: The main objectives which will be needed to cover this project are: Building the frame widgets Creating the keynotes as Buttons Adding the sound First of all, we will import all the necessary libraries, then we will create the instance of the tkinter frame i.e. Tk(). With this, we will also set the title and geometry for our window by using “.title()” & “.geometry()”. Adding to this, we will also set the background color of the window by the “.configure(background=)” function. Now we have to create the Frame widget, it is one of the most important steps. The frame widget is for the process of grouping and organizing other widgets in a somehow friendly way. It works like a container, which is responsible for arranging the position of other widgets. In this project, we will create 4 frame widgets. The need for the 4 will get discussed further. The syntax for creating the frame widget is as follows: “Frame(root, bg=,bd=,width=,height=,….)” and with the help of “.grid()” will place it on our window. With the frame widget, we will also create a label widget [“Label()”]and an Entry widget [“Entry()”] for the top heading and to get to know the pressed keynote respectively. The next most important step is to create buttons to show the keynotes for the piano. The syntax is as follows: “Buttons(root, bg=,font=,height=,width=,text=…., command=)” Within the “text” parameter we will mention the name of the keynote that is to be present on the button and with the help of “command” parameter will direct it to the function to be called. In the end, with the help of “.grid()” will place the buttons accordingly on the window screen. In such a way, for this project, we have created the following keynotes of the piano. C# (C sharp) D# (D sharp) F# (F sharp) G# (G sharp) Bb C#1 D#1 C D E F G A B C1 D1 E1 F1 The next step is to add the actual functionality of this project, that is, adding the sound such that whenever the buttons are clicked by the user the sound of that particular keynote will be played. For doing so, we will make user-defined functions that will make use of the “mixer” module. With the help of the “pygame.mixer.Sound()” function, this will pass the name of the sound file in either .wav or .mp3 format. Finally, with the help of “.play()” will give the command to play the sound. In the end, we will run the mainloop for everything to get executed. By following all these steps, we can create a GUI Piano!

400+ JS Interview Questions.pdf4.37 MB

Python Complete Notes (1).pdf10.31 MB

Python 🐍 Handwritten Notes (1).pdf9.07 MB

top 100 Java interview questions _ (1).pdf1.94 MB

Basic Java Interview Questions.pdf2.43 MB

50 Common Interview Questions & Answers.pdf2.13 MB