<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Monalisha Borgohain on Medium]]></title>
        <description><![CDATA[Stories by Monalisha Borgohain on Medium]]></description>
        <link>https://medium.com/@monalisha1?source=rss-ccfce0926eae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pU0LACYkxSXoSgZSW4yufA.jpeg</url>
            <title>Stories by Monalisha Borgohain on Medium</title>
            <link>https://medium.com/@monalisha1?source=rss-ccfce0926eae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:26:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@monalisha1/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Wake Up with Python: Building an Alarm Clock App]]></title>
            <link>https://medium.com/@monalisha1/wake-up-with-python-building-an-alarm-clock-app-2c69eb871817?source=rss-ccfce0926eae------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c69eb871817</guid>
            <category><![CDATA[python-tkinter]]></category>
            <category><![CDATA[alarm-clock]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python-for-beginners]]></category>
            <category><![CDATA[python-best-practices]]></category>
            <dc:creator><![CDATA[Monalisha Borgohain]]></dc:creator>
            <pubDate>Mon, 18 Aug 2025 05:49:14 GMT</pubDate>
            <atom:updated>2025-08-20T16:41:59.188Z</atom:updated>
            <content:encoded><![CDATA[<p>An alarm clock is a small yet necessary tool in our daily life. We set alarms to keep our lifestyle organized. If you are a Python beginner, you can try building this Alarm Clock application. We built an Alarm Clock application using Python’s Tkinter library.</p><p>Want to explore each step of building the Alarm Clock App in detail? Continue reading this article to follow the walkthrough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*02ZyeJW_4stjFqSKDz3z6Q.png" /></figure><p>You can find the source code for the Alarm Clock App on my <a href="https://github.com/monalisha99/Alarm-Clock.git">GitHub Repository.</a></p><h3>Table Of Contents</h3><ol><li>Flowchart Of Alarm Clock</li><li>Import Modules</li><li>Initialize Global Variables</li><li>Create A Function To Update Live Clock</li><li>Create A Function To Set Alarm</li><li>Create A Function To Turn Off Alarm</li><li>Set Up GUI</li><li>Creating Day Selection With Checkbuttons For Each Day</li><li>Start Clock And Mainloop</li><li>Final Output Of The Alarm Clock Application</li></ol><h3>1. Flowchart Of Alarm Clock</h3><p>The flowchart visualizes each step of the Alarm Clock application. Before writing the code, let’s see how the application works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UrwEBrvUlF-e2eEUr-IBaA.png" /></figure><h3>2. Import Modules</h3><p>We will begin by importing the necessary Python modules. Here, we are using — <strong>tkinter</strong> , <strong>datetime</strong>, <strong>time</strong>, <strong>threading</strong>, and <strong>subprocess</strong>. The use cases are explained using comments below.</p><pre># Import necessary modules<br>import tkinter as tk                            <br>from tkinter import messagebox <br># For current date/time                <br>from datetime import datetime<br># For sleep                   <br>import time<br># To run alarm without freezing GUI                                     <br>import threading<br># To run system commands (play audio)                               <br>import subprocess                               </pre><h3>3. Initialize Global Variables</h3><p>We are using two global variables — running, alarm_thread. These will be used to control whether the alarm thread should keep running. The variable alarm_thread is set as None, and it will store the background thread where the alarm runs.</p><pre># Global variables to manage alarm thread<br>running = True<br>alarm_thread = None</pre><h3>4. Create A Function To Update Live Clock</h3><p>The live clock that continuously displays the current time and day is crucial, since we set time seeing the current time &amp; day. The function update_clock() is added to update live clock. The system’s present time with AM/PM in a variable current_time. We also get the full weekday name and keep at current_day. These values are displayed on the labels through live_clock_label.config() and live_day_label.config(). We use root.after(1000, update_clock) to call the same function again every second. Thus, it keeps refreshing the display without the main application.</p><pre># FUNCTION TO UPDATE LIVE CLOCK<br>def update_clock():<br>    current_time = datetime.now().strftime(&quot;%I:%M:%S %p&quot;)  # Format current time (e.g., 08:45:01 PM)<br>    current_day = datetime.now().strftime(&quot;%A&quot;)            # Get full day name (e.g., &quot;Tuesday&quot;)<br><br>    # Update the labels with current time and day<br>    live_clock_label.config(text=current_time)<br>    live_day_label.config(text=current_day)<br><br>    # Call this function again after 1 second (1000 milliseconds)<br>    root.after(1000, update_clock)</pre><h3>5. Create A Function To Set Alarm</h3><p>We are creating a function called set_alarm() to run the alarm. Inside this function, the global variables: running and alarm_thread.are used. We retrieve the value from the entry box and keep it in a variable alarm_time and then update the label to confirm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*j0Z2scm_W7ezz5O1imwbew.png" /></figure><p>Next, inside it we create another small function called alarm(), which runs in a separate thread. This function goes into a loop, checking every second to see if the current time and day match the time and day chosen by us. If they match, it plays the alarm sound (alarm_clock.mp3) and shows a popup message “Wake Up!”. If something goes wrong, an error message is shown as &quot;Error&quot;. At the end, we start the background thread using threading.Thread. It makes sure the checking happens in the background without freezing the main GUI.</p><pre>def set_alarm():<br>    global running, alarm_thread<br>    running = True                                          # Enable alarm loop<br>    alarm_time = entry_time.get()                           # Get the alarm time entered by user<br>    label.config(text=f&quot;Alarm set for {alarm_time}&quot;)        # Show alarm time on screen<br><br>    # Function to run in separate thread<br>    def alarm():<br>        try:<br>            while running:<br>                now = datetime.now()<br>                current_time = now.strftime(&quot;%I:%M %p&quot;).strip().upper()     # Format: &quot;08:30 PM&quot;<br>                current_day = now.strftime(&quot;%A&quot;)                            # e.g., &quot;Monday&quot;<br>                alarm_time_clean = alarm_time.strip().upper()              # Clean user input<br><br>                # Check: if current time == alarm time and the selected day matches<br>                if current_time == alarm_time_clean and days_selected.get(current_day, tk.BooleanVar()).get():<br>                    subprocess.run([&quot;mpg123&quot;, &quot;alarm_clock.mp3&quot;])          # Play alarm sound (Linux)<br>                    messagebox.showinfo(&quot;Alarm&quot;, &quot;Wake Up!&quot;)               # Show popup<br>                    break<br>                time.sleep(1)                                              # Wait 1 second before checking again<br>        except:<br>            messagebox.showerror(&quot;Error&quot;, &quot;Something is wrong!&quot;)           # Show error popup<br><br>    # Start the alarm thread<br>    alarm_thread = threading.Thread(target=alarm)<br>    alarm_thread.start()</pre><h3>6. Create A Function To Turn Off Alarm</h3><p>To turn off the alarm, we create a function off_alarm(). The variable running is set to False. So that it immediately stops the alarm loop running in the background thread. At the same time, the label on the screen is updated with the text “Alarm Stopped.” We use the subprocess.run([&quot;pkill&quot;, &quot;mpg123&quot;]) to stop the audio. Now, the alarm completely shuts down. It stops both in the program and in the system’s audio process.</p><pre># FUNCTION TO TURN OFF ALARM <br>def off_alarm():<br>    global running<br>    running = False                                # Stop alarm loop<br>    label.config(text=&quot;Alarm Stopped&quot;)             # Show status on screen<br>    subprocess.run([&quot;pkill&quot;, &quot;mpg123&quot;])            # Kill audio process (Linux specific)</pre><h3>7. Set Up GUI</h3><p><strong>7.1 Window:</strong></p><p>We initialize the main application window using tk.Tk(). The title of the window, the background color and the size are set. These settings decide how the window looks on the screen, and you can change them according to your own preference.</p><pre>root = tk.Tk()<br>root.title(&quot;Alarm Clock&quot;)                          # Title of the window<br>root.configure(bg=&quot;white&quot;)                         # Background color<br>root.geometry(&quot;640x380&quot;)                           # Window size</pre><p><strong>7.2 Label</strong></p><p>The labels are added. We define live_day_label to display the current day. It is styled font and set color for the font &amp; label. We again define live_clock_label, which will show the current time, using the same styling. A smaller label is also added named label with the text “Set time”, which guides us to enter our alarm time.</p><pre># Live Day Label<br>live_day_label = tk.Label(root, font=(&quot;Arial, 24&quot;), fg=&quot;blue&quot;, bg=&quot;white&quot;)<br>live_day_label.pack(pady=10)<br><br># Live Clock Label<br>live_clock_label = tk.Label(root, font=(&quot;Arial, 24&quot;), fg=&quot;blue&quot;, bg=&quot;white&quot;)<br>live_clock_label.pack(pady=10)<br><br># Label for alarm setting<br>label = tk.Label(root, text=&quot;Set time&quot;, font=(&quot;Arial&quot;, 14), fg=&quot;blue&quot;, bg=&quot;white&quot;)<br>label.pack(pady=10)</pre><p><strong>7.3 Entrybox</strong></p><p>We create an entry widget where we can type in the alarm time. By default, the entry box is set “00:00 AM”, so that it will not be a problem for us to enter the time. We adjust it with pady and ipay.</p><pre>entry_time = tk.Entry(root, font=(&quot;Arial, 24&quot;), width=30, justify=&quot;center&quot;)<br>entry_time.insert(0, &quot;00:00 AM&quot;)                   # Default value<br>entry_time.pack(pady=10, ipady=10)</pre><p><strong>7.5 Button</strong></p><p>The ON button is styled with font,text and color. When we click it, the set_alarm function is called, which activates the alarm in a separate thread. The OFF button is designed similarly. When clicked, it triggers the off_alarm function, which stops the alarm sound and ends the alarm loop.</p><p>Both buttons are placed in the window. We are using ipady/ipadx to adjust the internal spacing, making them more user-friendly.</p><pre># ON Button<br>on_button = tk.Button(root, <br>                      text=&quot;ON&quot;, <br>                      font=(&quot;Arial&quot;, 16), <br>                      fg=&quot;black&quot;, <br>                      bg=&quot;lightblue&quot;, <br>                      activebackground=&quot;blue&quot;, <br>                      activeforeground=&quot;white&quot;, <br>                      command=set_alarm)           # Calls set_alarm<br>on_button.pack(pady=10, ipady=5)<br><br># OFF Button<br>off_button = tk.Button(root, <br>                       text=&quot;OFF&quot;, <br>                       font=(&quot;Arial&quot;, 16), <br>                       bg=&quot;lightblue&quot;, <br>                       fg=&quot;black&quot;, <br>                       activebackground=&quot;blue&quot;, <br>                       activeforeground=&quot;red&quot;, <br>                       command=off_alarm)          # Calls off_alarm<br>off_button.pack(pady=10, ipadx=2)</pre><h3>8. Creating Day Selection With Checkbuttons For Each Day</h3><p>We add day selection checkboxes so that it shows clearly on which days the alarm should ring.</p><p>First, a dictionary is created called days_selected to store the BooleanVar values for each day. A list is defined named days that contains all seven weekdays. Along with these we add a label day_label , displaying “Select Day(s) for Alarm:” to give instructions to us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*4wj3bageVVgv815jIyeP6g.png" /></figure><p>To organize the checkboxes neatly, we create a separate frame called checkbox_frame. Inside a loop, one Checkbutton is created for each day. Each checkbox is linked to a BooleanVar, which lets the program check later whether that day is selected or not. The checkboxes are styled by setting the font, text color, and background color. Additionally, anchor=&quot;w&quot; is used to left-align the day names and adjust the padding for better spacing.</p><p>At the end, we store each BooleanVar in the days_selected dictionary with the day name as the key. This makes it easy to check later if a specific day was chosen when the alarm is triggered.</p><pre># DAY SELECTION CHECKBOXES <br>days_selected = {}                                 # Dictionary to store each day&#39;s BooleanVar<br>days = [&quot;Monday&quot;, &quot;Tuesday&quot;, &quot;Wednesday&quot;, &quot;Thursday&quot;, &quot;Friday&quot;, &quot;Saturday&quot;, &quot;Sunday&quot;]<br><br># Label for day selection<br>day_label = tk.Label(root, <br>                     text=&quot;Select Day(s) for Alarm:&quot;, <br>                     font=(&quot;Arial&quot;, 24), <br>                     fg=&quot;blue&quot;, <br>                     bg=&quot;white&quot;)<br>day_label.pack(pady=5, ipady=10)<br><br># Create a frame to hold checkboxes<br>checkbox_frame = tk.Frame(root, bg=&quot;white&quot;)<br>checkbox_frame.pack(pady=10)<br><br># Add a checkbox for each day<br>for i, day in enumerate(days):<br>    var = tk.BooleanVar()                           # Variable to hold checkbox value<br>    chk = tk.Checkbutton(checkbox_frame, <br>                         text=day, <br>                         variable=var, <br>                         font=(&quot;Arial&quot;, 14),<br>                         fg=&quot;blue&quot;,<br>                         bg=&quot;lightgray&quot;,<br>                         activeforeground=&quot;red&quot;, <br>                         width=15,                  # Width of checkbox text<br>                         anchor=&quot;w&quot;,                # Left align text<br>                         padx=10)                   # Padding<br>    chk.grid(row=i, column=0, sticky=&quot;w&quot;, padx=20, pady=10, ipady=2)<br><br>    days_selected[day] = var                        # Save variable to dictionary</pre><h3>9. Start Clock And Mainloop</h3><p>The function update_clock()is called to continuously update the current time and day on the screen every second. root.mainloop() runs the main application. Without mainloop(), the window would close immediately after running the script, so this line is essential to keep the alarm clock application interactive and running.</p><pre># START CLOCK AND MAINLOOP <br>update_clock()                                     # Start updating time<br>root.mainloop()                                    # Start GUI event loop</pre><h3>10. Final Output Of The Alarm Clock Application</h3><p>Here’s a screenshot of the final output of my Alarm Clock app!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*0M40sDNPTYptbd6ggncIAA.png" /></figure><p><em>To read more articles related to Python please follow the links below:</em></p><p><a href="https://medium.com/@monalisha1/how-i-built-a-text-editor-application-using-python-tkinter-0067b1af83fc"><strong><em>How I Built A Text Editor Application Using Python Tkinter</em></strong></a></p><p><a href="https://medium.com/@monalisha1/building-a-simple-countdown-timer-application-using-python-tkinter-aa2fa9476982"><strong><em>Building A Simple Countdown Timer Application — Using Python Tkinter</em></strong></a></p><p><a href="https://medium.com/@monalisha1/functions-in-python-a-detailed-overview-a3b83203f2d5"><strong><em>Functions In Python — A Detailed Overview</em></strong></a></p><p><a href="https://medium.com/@monalisha1/building-my-first-to-do-list-app-with-tkinter-python-f2078afe5df4"><strong><em>Building A To-Do_list App — Using Python Tkinter</em></strong></a></p><p>I hope you enjoyed reading this article and found it helpful. I’d love to hear your thoughts — please feel free to share your advice, feedback, or suggestions in the comments. If you’d like to see more of my projects and articles, you can follow me on <a href="http://linkedin.com/in/monalisha11">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c69eb871817" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built A Text Editor Application Using Python Tkinter]]></title>
            <link>https://medium.com/@monalisha1/how-i-built-a-text-editor-application-using-python-tkinter-0067b1af83fc?source=rss-ccfce0926eae------2</link>
            <guid isPermaLink="false">https://medium.com/p/0067b1af83fc</guid>
            <category><![CDATA[tkinter]]></category>
            <category><![CDATA[text-editor]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python-for-beginners]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Monalisha Borgohain]]></dc:creator>
            <pubDate>Sun, 10 Aug 2025 13:16:30 GMT</pubDate>
            <atom:updated>2025-08-14T18:46:48.461Z</atom:updated>
            <content:encoded><![CDATA[<p>As a Python beginner I am always looking for ways to apply my basic Python skills to create different kinds of applications. One of the most useful projects is a text editor application. It is perfect for writing down notes and saving them to read later. Have you ever thought about creating your own text editor app? If yes, I am sure this thorough description of building my simple text editor will help you get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G_CR4XFctjllmc1vMYQxww.png" /></figure><h3>Table of Contents</h3><ol><li>Flowchart Of The Text-Editor App</li><li>Import GUI Modules</li><li>Create a Function For Save Button</li><li>Create AFunction For Open Button</li><li>Enable Mousewheel Scrolling For The Scrollbar</li><li>Create The Main Application Window (GUI)</li><li>Make The Textbox Resizable</li><li>Add A Frame &amp; Resize It</li><li>Add Textbox, Scrollbar &amp; Save Button</li><li>Bind Mousewheel Event To The Textbox And Add Open Button</li><li>Run The Main Application</li></ol><p><em>If you want to read more articles related to Python, please follow the links below:</em></p><ul><li><a href="https://medium.com/@monalisha1/building-my-first-to-do-list-app-with-tkinter-python-f2078afe5df4">How to build a To-Do-List App</a></li><li><a href="https://medium.com/@monalisha1/building-a-simple-countdown-timer-application-using-python-tkinter-aa2fa9476982">How to build a Countdown Application</a></li></ul><h3>1. Flowchart Of The Text Editor App</h3><p>A flowchart is very helpful and easy to understand the structure before coding. It will be easier for you to identify every steps, sequence of operations and how different componets interact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xU1iKHh2dA0tFybCeN46Vg.png" /><figcaption>Flowchart- Text Editor App</figcaption></figure><p>To check out the code of the text editor application you can follow my github repository. The link is here —</p><ul><li>G<a href="https://github.com/monalisha99/Text-Editor.git">itHubRepository</a></li></ul><h3>2. Import GUI And Modules</h3><p>My first step was to import Tkinter. It is a graphical user interface library for Python. It comes with Python. So, you don’t need to install it separately. I imported modules like filedialog, which allows a small file selection window to appear inside the main window; messagebox, which creates pop-up alert boxes; and font, which helps control the text style in my application.</p><pre>import tkinter as tk<br>from tkinter import filedialog<br>from tkinter import messagebox<br>from tkinter import font</pre><h3>3. Create A Function For Save Button</h3><p>Let’s create a function that is triggered by the Save button. This is a user defined function, so you can name it whatever you like. We will name it save_task() for ease of understanding. If you are interested in learning Python functions in detail, check out my blog post on <a href="https://medium.com/@monalisha1/functions-in-python-a-detailed-overview-a3b83203f2d5">Functions in Python.</a></p><p>In the function, we start by retrieving texts from the textbox. As you can see, values entered in the textbox are stored in “texts” variable. The unnecessary whitespaces are removed using .strip().</p><p>We are adding a condition to prevent saving an empty file when there is nothing in the textbox. If the save button is clicked without entering any text, a pop-up message box appears showing Textbox is empty. Nothing to save.</p><p>To save the file, we are setting up a filedialog box as shown in the code below. The file type has been set to .txt as default. However, it can be modified by adding &quot;All Files&quot;, &quot;*.*&quot;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lHm3n_UxsxcLLf33bPFdrA.png" /></figure><p>The next block of code is responsible for saving the contents of the Tkinter application to the chosen file. First, it checks if it save_path contains a valid file path, which happens only if &quot;Save&quot; was clicked in the filedialog. Inside a try block, the file is opened in write mode using Python’s with statement, which ensures the file is automatically closed after the operation.</p><p>The file.write(texts) line writes the text from the texts variable into the file. If the save is successful, a Tkinter information message box is displayed to notify. If any error occurs during the process a pop-up messagebox shows “Error : Could not save file!”</p><pre>def save_task():<br>    # Get the text from the text box<br>    texts = text_box.get(&quot;1.0&quot;, tk.END).strip()<br><br>    if not texts:<br>        messagebox.showwarning(&quot;Empty&quot;, &quot;Text box is empty. Nothing to save.&quot;)<br>        return<br><br>    # Ask for save location (asksaveasfilename, not askopenfilename)<br>    save_path = filedialog.asksaveasfilename(<br>        defaultextension=&quot;.txt&quot;,<br>        filetypes=[(&quot;Text Files&quot;, &quot;*.txt&quot;), (&quot;All Files&quot;, &quot;*.*&quot;)]<br>    )<br><br>    if save_path:<br>        try:<br>            with open(save_path, &quot;w&quot;) as file:<br>                file.write(texts)<br>            messagebox.showinfo(&quot;Saved&quot;, &quot;File saved successfully!&quot;)<br>        except:<br>            messagebox.showerror(&quot;Error&quot;, &quot;Could not save file!&quot;)</pre><h3>4. Create A Function For Open Button</h3><p>When open_file() function is triggered, it opens a file selection dialog. The difference is that, here we choose a file to read (not to write). The settings are similar to save button dialog. If a file is chosen, the program reads its content and stores it in a variable called content. Before displaying the new data, the text box is completely cleared — from line 1, character 0, to the very last character. Then, the stored content is inserted into the empty text box. If any error occurs during this process, such as an invalid file or a read failure, the program displays an error pop-up message that says: Error Couldn&#39;t read file!</p><pre>def open_file():<br>	# open the file dialog window on the screen when &quot;Open&quot; button is clicked<br>	# &quot;Text Files&quot; is the label shows in the file dialog dropdown <br>	# The lable also includes &quot;all files&quot;<br>	#  * means any name before .txt file(file type)<br>	# *.* means any name before and after dot<br><br>	open_filedialog_path2 = filedialog.askopenfilename(<br>		filetypes= [(&quot;Text Files&quot;, &quot;*.txt&quot;),(&quot;all Files&quot;, &quot;*.*&quot;)]<br>		)<br><br>	if open_filedialog_path2:<br>		# try to open file dialog path and read the files <br>		try:<br>			with open(open_filedialog_path2,&quot;r&quot;) as file:<br>				content = file.read()<br>				# clear previous content in the text box<br>				text_box.delete(&quot;1.0&quot;, tk.END)<br>				# insert the new content<br>				text_box.insert(tk.END, content)<br>		except:<br>			messagebox.showerror(&quot;Error&quot;, &quot;Could not read file!&quot;)</pre><h3>5. Enable Mouse Wheel Scrolling For Scrollbar</h3><p>To make the text box more comfortable, I created a function called on_mouse_wheel(). This function is triggered whenever the mouse wheel is scrolled while the cursor is over the text box.</p><p>The event parameter provides information about the scroll action. In this case, event.delta tells us how much the mouse wheel has moved. A positive value means the wheel is scrolled down, and a negative value means it’s scrolled up.</p><p>Inside the function, I use text_box.yview_scroll() to move the text vertically. The first argument controls the number of units to scroll, and the second argument, &quot;units,&quot; specifies the scroll type. Since event.delta can vary depending on the scroll direction, I multiply it by -1/120 to ensure the scrolling feels natural and consistent in both directions.</p><pre>def on_mouse_wheel(event):<br>	# This function is used to scroll the text box when mouse wheel is scrolled<br>	# event.delta is the amount of scroll<br>	# positive value means scroll down, negative means scroll up<br>	text_box.yview_scroll(int(-1*(event.delta/120)), &quot;units&quot;)</pre><h3>6. Creating The Main Application Window (GUI)</h3><p>I start by creating the main application window using tk.Tk(). This serves as the base container for all other widgets in the text editor. I set the title of the window, which sets the width to 690 pixels and the height to 320 pixels. These values are just my choice; there’s no rule that says you have to use the same window name, title, or size. You can customize them to your own preference.</p><pre># create window<br>root = tk.Tk()<br>root.title(&quot;Text Editor&quot;)<br>root.geometry(&quot;690x320&quot;)</pre><h3>7. Make The Textbox Resizable</h3><p>It is important to make the text box flexible with the main window. Otherwise, when the window grows or shrinks, the text box will remain the same size, which can be uncomfortable to use. So, I use root.grid_rowconfigure(1, weight=1) to make row 1 resizable and root.grid_columnconfigure(0, weight=1) to make column 0 resizable. The weight=1 setting means that when the window changes size, these rows and columns will expand or contract proportionally, keeping the layout neat.</p><pre># textbox resize<br># (When resize the window, the Text box will grow/shrink with it)<br>root.grid_rowconfigure(1, weight=1)  # Only row 1 is resizable<br>root.grid_columnconfigure(0, weight=1)</pre><h3>8. Add A Frame And Resize It</h3><p>I add a frame named frame1 to the main window using tk.Frame(root, bg=&quot;gray&quot;). This frame acts as a container for the text box and other related widgets. I place it with .grid.</p><p>I make the frame resizable so its contents can adjust when the main window is resized. I do this with frame1.grid_rowconfigure(1, weight=1) for row 1 and frame1.grid_columnconfigure(0, weight=1) for column 0. This ensures that the text box inside will grow or shrink smoothly.</p><pre># add a frame <br>frame1 = tk.Frame(root, bg=&quot;gray&quot;)<br>frame1.grid(row=1, column=0, columnspan=2, padx=15, pady=3, sticky=&#39;nsew&#39;)<br><br># Make frame1 row and column resizable<br>frame1.grid_rowconfigure(1, weight=1)<br>frame1.grid_columnconfigure(0, weight=1)</pre><h3>9. Add Textbox, Scrollbar &amp; Open Button</h3><p>To type and view texts I add the main text box as text_box inside the frame. I use a &quot;monospaced font&quot; (Courier New, size 16)and place it.</p><p>To allow scrolling through long text, I add a vertical scrollbar next to the text box. The scrollbar is placed in row 1, column 1 so it doesn’t overlap with the text box, it means inside the frame but outside the textbox and I set its command to text_box.yview so it controls the text box’s vertical movement. The text box is also linked to the scrollbar with yscrollcommand=scroll_bar.set.</p><p>I also add the “Save” button, which is placed in row 0, column 0 and explains the button’s colour, size etc. It runs the save_task() function when clicked.</p><pre># add textbox inside the frame<br># padx=(10,0) means, 10 pixels on the left(from the frame border) and o pixels on the right<br>text_box = tk.Text(frame1, font=(&quot;Courier New&quot;, 16), wrap=&#39;word&#39;)<br>text_box.grid(row=1, column=0, padx=(4,0), pady=3, sticky=&#39;nsew&#39;)<br><br>#text_box.window_create(&quot;end&quot;, window=frame_in_textbox)<br><br>#Add a scrollbar outside the text, but inside the layout frame<br># make sure scrollbar column is not 0, because frame and textbox lies in column=0<br>scroll_bar = tk.Scrollbar(frame1, orient=&#39;vertical&#39;, command=text_box.yview, bg=&#39;lightblue&#39;, activebackground=&#39;blue&#39;)<br><br># padx=(5,10) means, 5 pixels on the left(from the textbox) and 10 pixels from the right<br>scroll_bar.grid(row=1, column=1, padx=(5,10),sticky=&#39;ns&#39;)<br><br><br># Link the text box and scrollbar:<br># This ensures the scrollbar moves as the text scrolls vertically<br>text_box.config(yscrollcommand=scroll_bar.set)<br><br># add &quot;save&quot; buttons<br>save_button = tk.Button(root,text=&#39;Save&#39;, <br>	width=8, <br>	height=2, <br>	bg=&#39;lightblue&#39;, <br>	fg=&#39;black&#39;, <br>	activebackground=&#39;darkblue&#39;, <br>	activeforeground=&#39;white&#39;,<br>	command=save_task)<br>save_button.grid(row=0, column=0, sticky=&#39;ne&#39;, padx=108, pady=3)</pre><h3>10. Binding Mouse Wheel Event to The Textbox and Add Open Button</h3><p>I bind the mouse wheel events to the text box so I can scroll through it using my mouse wheel.</p><ul><li>&lt;Button-4&gt; for scroll up and</li><li>&lt;Button-5&gt; for scroll down</li></ul><p>The “Open” button is placed in row 0, column 0, but positioned differently from the “Save” button using padx so it appears separately. When clicked, this button runs the open_file() function.</p><pre># bind mousewheel event to the textbox<br># code only works on Linux(&lt;Button-4&gt; and &lt;Button-5&gt; events).<br>text_box.bind(&quot;&lt;Button-5&gt;&quot;, on_mouse_wheel)<br>text_box.bind(&quot;&lt;Button-4&gt;&quot;, on_mouse_wheel)<br><br># define open button and place it<br>open_button = tk.Button(root, text=&#39;Open&#39;, width=8, height=2, bg=&#39;lightblue&#39;, fg=&#39;black&#39;, activebackground=&#39;darkblue&#39;, activeforeground=&#39;white&#39;, command=open_file)<br>open_button.grid(row=0, column=0, sticky=&#39;ne&#39;, padx=15, pady=3)</pre><h3>11. Run the Main Application</h3><p>At the end, I call root.mainloop() to start the application’s event loop. It keeps the window open and responsive. Without it, the program would create the window, and before you blink your eyes, it would immediately close.</p><p>When you create your main application window, I suggest adding this line of code first so you can check if the window opens and works as expected. After that, you can add other widgets, functions, and features. In the final program, however, it should always be the very last line after all setup is complete.</p><pre># Run the main application<br>root.mainloop()</pre><p>After running my application, the output appears as shown in the following picture. In this example, the picture shows the filedialog that appears when clicking the <strong>Open</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*WiNorpZ1gAF8h0gdaAgWVw.png" /></figure><p>It’s very enjoyable to build a text editor app where you can put your basic Python skills into practice. Through this project, you’ll learn how to work with GUI elements, handle file operations, manage events like button clicks and mouse scrolling, and structure a program from start to finish.</p><p>The best part is that it’s a real, usable tool you can improve and customize anytime. If you’re a beginner in Python, I encourage you to try building your own version — you’ll be surprised by how much you learn in the process.</p><p>I hope you enjoyed reading this article and found it helpful. I’d love to hear your thoughts — please feel free to share your advice, feedback, or suggestions in the comments. If you’d like to see more of my projects and articles, you can follow me on <a href="http://linkedin.com/in/monalisha11">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0067b1af83fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Advantage Assam 2.0 — A Journey of Progress”]]></title>
            <link>https://medium.com/@monalisha1/advantage-assam-2-0-a-journey-of-progress-941f03caca50?source=rss-ccfce0926eae------2</link>
            <guid isPermaLink="false">https://medium.com/p/941f03caca50</guid>
            <category><![CDATA[advantage-assam]]></category>
            <category><![CDATA[global-investors-summit]]></category>
            <category><![CDATA[investment]]></category>
            <category><![CDATA[assam]]></category>
            <dc:creator><![CDATA[Monalisha Borgohain]]></dc:creator>
            <pubDate>Thu, 07 Aug 2025 16:50:25 GMT</pubDate>
            <atom:updated>2025-08-07T17:01:42.111Z</atom:updated>
            <content:encoded><![CDATA[<h3>“Advantage Assam 2.0 — A Journey of Progress”</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T39VhkQkUDk80G0PNLFfXQ.png" /></figure><p>The second edition of ‘Advantage Assam 2.0,’ was held in Assam on 25 and 26 February 2025. It is one of the largest global investment initiatives undertaken by the Government of Assam so far. The question arises: Will this investment initiative boost Assam’s economy like Gujarat;s? Yet, despite the skepticism, we remain hopeful for a positive and fruitful outcome.</p><h3>Table of Content</h3><ol><li><strong>Objective of Advantage Assam 2.0</strong></li><li><strong>Why Assam?</strong></li><li><strong>Focus Sectors</strong></li><li><strong>Investment Proposals in Advantage Assam 2.0</strong></li><li><strong>Comprehensive Analysis of The Projected Investments</strong></li></ol><h3>1. Objectives of Advantage Assam 2.0</h3><p>Assam is constantly growing in several sectors and has the potential to grow more. The main objectives are -</p><ul><li><strong>Explore trade and business opportunities in Assam by showcasing its business potential and investment prospects.</strong></li><li><strong>Transform Assam into a more resourceful, revenue-generating, and advanced economy.</strong></li><li><strong>Strengthen Assam’s economic and cultural ties with ASEAN countries.</strong></li></ul><h3>2. Why Assam?</h3><p>Assam has taken this initiative because of the following reasons-</p><p><strong>2.1. Location</strong></p><p>Assam is a northeastern state in India. It has geostrategic importance, a gateway to all northeastern states of India, and also serves as a gateway to Southeast Asian countries. Therefore, Assam is significant in playing a major role in connecting India with all over the world.</p><p><strong>2.2. Some High Contributed Industries</strong></p><p>Assam is a major hub of top three industries: tea, coal, and natural gas. It has been contributing a large amount to India’s GDP. It is crucial to renovate and invest more in these industries and recognize Assam globally.</p><p><strong>2.3. Growing sectors</strong></p><p>It is beneficial to invest in a sector that is actually in a growing stage. Assam has been growing in several sectors like infrastructure, electronics, tourism, food and beverage, fragrance and flavors, etc.</p><p><strong>2.4. Political Stability</strong></p><p>Political stability is of utmost necessity to attract investors. Assam has been maintaining political stability for years. The government of Assam has an assurance to secure and assist for any kind of instability.</p><p><strong>2.5. Population</strong></p><p>At present approximately 3.73 crore people live in Assam. From them, more than 87 lakhs are youth. There is no shortage of workforce in different sectors in Assam. Indeed, the large youth population can contribute to the growing sectors immensely.</p><h3>3. Focus Sectors</h3><p>Assam has focused on some crucial factors. They are -</p><p><strong>3.1. Infrastructure Development</strong></p><p>Assam has been contributing to building national highways, state highways, railways, and airports, which are the landmarks of convenient interstate and international trade and business. Assam boasts 3,822.88 km of national highways and 4,309 km of state highways. With some small-scale bridges, the Dhubri-Phulbari river bridge is under construction, which will become India’s largest river bridge. Railway infrastructure spans 2,435 km, serving as one of the most comfortable modes of transportation. In terms of aviation, Assam has 7 operational airports, and a new terminal building is under development at LGBI airport in Guwahati.</p><p><strong>3.2. Electronics and Semiconductors</strong></p><p>The Government of Assam is planning to develop Assam’s electronics and semiconductor logistics park. In Jagiroad, Morigaon district, India’s largest semiconductor plant is under construction. The increasing demand for electronic goods is a good opportunity for the manufacturers as well as for the nation’s economy.</p><p><strong>3.3 Aerospace and Defence Manufacturing</strong></p><p>The Assam’s Aerospace and Defence Manufacturing Policy 2025 is a significant step towards making Assam a hub of defence and manufacturing. The Defence Research and Development organizations will enhance the creation of skilled workers in Assam.</p><p><strong>3.4. Renewable Energy and Hydrocarbon</strong></p><p>The ‘Assam integrated Clean Energy Policy-2025’, will be an effective policy of producing Renewable energy and Hydrocarbons. The aim is to achieve an additional 11,700 MW of renewable power projects by 2030.</p><p><strong>3.5. Tourism</strong></p><p>Assam is rich in natural and cultural heritages. It has 8 national parks, 19 wildlife sanctuaries, lots of historical monuments, etc. Assam has 3 UNESCO World Heritage sites, which have been an attraction for tourists all over the world.</p><p><strong>3.6. Beverage</strong></p><p>In Assam, different types of foods are produced, which have a great demand outside India. Besides, Assam produces about 52% of India’s total tea production. Assam, 2nd largest producer of pineapple and 3rd largest producer of Ginger in India. The government of Assam provides specific incentives for the growth of agro-business industries.</p><p><strong>3.7. Fragrance and Flavors</strong></p><p>One of the highly valued aromatic woods, which is Agarwood, is found in Assam. The Assam Agarwood policy 2020, provides incentives for procurement, processing, research and marketing.</p><p><strong>3.8. Mobility and Logistics</strong></p><p>India’s 1st multi-modal logistics park is under construction at Jogighopa, which will make Assam a logistics hub for the northeast. Besides, floating terminals are being constructed on National Waterway 2 (NW-2) and National Waterway 16 (NW-16). Assam’s mobility and logistics policy will foster the growth of transport and services to other states of India and ASEAN nations.</p><h3>4. Investment Proposals in Advantage Assam 2.0</h3><p>Many Industrialists and investors made significant promises in Advantage Assam 2.0. Following are the top 10 commitments from various groups.</p><p>Table: Advantage Assam 2.0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MhiSsmvcEz92Y3waEqj8MQ.png" /></figure><h3>5. Comprehensive Analysis of The Projected Investments</h3><p>With all the bells and whistles of 4.19 lakh crore investments, AA 2.0 sounds and seems pretty good. However, is it going to hold up to our expectations? Or is it going to falter just like Advantage Assam 1.0? Will AA 2.0 take Assam and the Northeast to a sustainable future? The following table shows promises of AA 1.0 and their status.</p><p>Table: Advantage Assam 1.0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AKL82fBpHbsEXszBIaCktw.png" /></figure><p>The investment promises in AA 2.0 are three times higher than the AA 1.0. No doubt, we may see some positive outcomes like job creation, revenue generation, reduction of energy dependence, etc. but we will face serious negative environmental consequences. The potential negative outcomes are -</p><p>5.1. Commitments to investments in oil exploration and cement industries will increase emissions of carbon dioxide(CO2), sulfur oxides( SOx), and nitrogen oxides(NOx), which are highly detrimental to the environment. Additionally, waste materials from these industries pollute water and soil. The emission of toxic fumes and water contamination can lead to respiratory diseases and cancer.</p><p>5.2. Large- scale solar farms and installation of CNG and PNG pipelines can disturb ecosystems, leading to habitat destruction and loss of biodiversity.</p><p>5.3. Large projects require extensive farmland, which could monopolize the market and negatively impact local farmers and small- scale businesses.</p><p>5.4. Large-scale projects may require the displacement of communities, leading to loss of homes and livelihoods.</p><p>Will the authorities take steps to mitigate potential environmental destruction? Since Assam is rich in natural resources and biodiversity, it is crucial to preserve it without causing damage.</p><p>‘Advantage Assam 2.0 — Investment and Infrastructure Summit 2025’ is a commendable initiative by the Government of Assam. We are optimistic that the state’s welfare and skill development policies will foster growth across various sectors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=941f03caca50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Simple Countdown Timer Application — Using Python Tkinter]]></title>
            <link>https://medium.com/@monalisha1/building-a-simple-countdown-timer-application-using-python-tkinter-aa2fa9476982?source=rss-ccfce0926eae------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa2fa9476982</guid>
            <category><![CDATA[tkinter]]></category>
            <category><![CDATA[countdown-timer]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python-for-beginners]]></category>
            <dc:creator><![CDATA[Monalisha Borgohain]]></dc:creator>
            <pubDate>Thu, 31 Jul 2025 18:09:56 GMT</pubDate>
            <atom:updated>2025-08-15T19:08:42.065Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building A Simple Countdown Timer Application — Using Python Tkinter</h3><p>A Python beginner always wants to apply their learning through practical use. Building simple applications is not only helpful but also essential for growth of a python developer. These projects teach us the deeper concepts of GUI programming. Here, I want to show the steps I followed to build my Countdown Timer Application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hb5VPukBT_LRwi_u3xctbA.png" /></figure><p>To build the Countdown Timer Application, I used Python and Tkinter, along with several other useful tools, which I have explained in detail below.</p><h3>Table of Contents</h3><ol><li>Flowchart Of Countdown Timer</li><li>Import Required Libraries</li><li>Create The Entry Widget Function</li><li>Create The Label Widget Function</li><li>Design The User Interface(UI)</li><li>Set Up Labels and Frame Widgets</li><li>Set Up Entry Widget And Button</li><li>Run The Application Loop</li></ol><p>You can check out the code in my <a href="https://github.com/monalisha99/Countdown-Timer.git">GitHubRepository</a></p><p><em>To read more articles on Python please follow the links below:</em></p><ul><li><a href="https://medium.com/@monalisha1/functions-in-python-a-detailed-overview-a3b83203f2d5">Functions in Python: A Detailed Overview</a></li><li><a href="https://medium.com/@monalisha1/how-i-built-a-text-editor-application-using-python-tkinter-0067b1af83fc">How I Built A Text Editor Application Using Python Tkinter</a></li></ul><h3>1. Flowchart Of Countdown Timer</h3><p>A flowchart shows how we organize each task from start to finish in a simple and visual way. It helps us understand the application in just a few minutes. Below is the flowchart for the Countdown Timer Application:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*-iL7leYI2Sci9QpR1zDoYQ.png" /><figcaption>Flowchart of Countdown Timer Application</figcaption></figure><h3>2. Import Required Libraries</h3><p>To begin building a countdown timer with a graphical interface, we first import the Tkinter library and the font module from Tkinter. Tkinter is Python’s standard GUI (Graphical User Interface) toolkit and comes pre-installed with most Python distributions, so we don’t need to install it separately. Along with these, we also import messagebox and subprocess for later use.</p><pre>import tkinter as tk<br>from tkinter import font<br>from tkinter import messagebox<br>import subprocess</pre><h3>3. Create The Entry Widget Function</h3><p>We first create a function startTimer() to initiate the countdown in our application. It begins by retrieving the input from the entry widget and storing it in the timeStr variable. The entry widget (which we will define later) accepts time in the HH:MM:SS format.</p><p>If timeStr is &quot;00:00:00&quot;, a popup messagebox appears with the message &quot;Enter your time!&quot;. If the input is in a different format, the string is split into hours, minutes, and seconds, which are then converted into integers. These individual values are combined into a single total number of seconds.</p><p>If the input is correctly formatted and valid, the function calls countDown(totalSeconds) to start the countdown. If the input is incorrect—such as missing fields or invalid numbers—an error message is displayed as &quot;Invalid Format!&quot;</p><pre># Function to start the timer when the START button is clicked<br>def startTimer():<br>    timeStr = entryWidget.get()  <br>    try:<br>        # Split the string (HH:MM:SS) and convert each part to integers<br>        h, m, s = map(int, timeStr.split(&quot;:&quot;))<br><br>        # Convert the entire time to total seconds<br>        totalSeconds = h * 3600 + m * 60 + s<br><br>        # Start the countdown with the total seconds<br>        countDown(totalSeconds)<br>     except:<br>        label.config(text=&quot;Invalid Format! Use HH:MM:SS&quot;)</pre><h3>4.Create The Label Widget Function</h3><p>We create a function called countDown() to display and update the countdown timer and include a parameter named- “seconds”. If the seconds value is non-negative, the function breaks it down into hours, minutes, and seconds using the divmod() function. The time is then formatted as hour:minute:second and displayed on the label widget. To ensure the countdown continues smoothly, the function uses root.after(1000, countDown, seconds - 1) to schedule itself to run again after one second, creating a loop without freezing the GUI. When the countdown reaches zero, music rings and the label is updated with a <strong>“</strong>Time’s<strong> </strong>up!<strong>”</strong> message, signaling the end of the timer.</p><pre># Recursive countdown function that updates the label every second<br>def countDown(seconds):<br>    if seconds &gt;= 0:<br>        # Convert total seconds back to hours, minutes, and seconds<br>        h, rem = divmod(seconds, 3600)  # rem = remaining seconds after hours<br>        m, s = divmod(rem, 60)          # split remainder into minutes and seconds<br><br>        # Format the time with leading zeros (e.g., 01:05:09)<br>        timeFormat = &quot;{:02d}:{:02d}:{:02d}&quot;.format(h, m, s)<br><br>        # Update the label with the formatted time<br>        label.config(text=timeFormat)<br><br>        # Schedule the function to run again after 1 second (1000 milliseconds)<br>        root.after(1000, countDown, seconds - 1)<br>    else:<br>        # When time is up, display message<br>        label.config(text=&quot;Time&#39;s up!&quot;, fg=&quot;red&quot;)<br>        subprocess.run([&quot;mpg123&quot;, &quot;alarm_clock.mp3&quot;])</pre><h3>5. Design The User Interface(UI)</h3><p>To build the countdown timer interface, we begin by creating the main application window using tk.Tk(). This window serves as the foundation of the graphical user interface. The title of the window is set to &quot;Countdown Timer&quot;. We fix the window size. To enhance the visual appearance, the background color of the window is set which provides a clean and neutral look for the timer interface.</p><pre># Create the main application window<br>root = tk.Tk()<br>root.title(&quot;Countdown Timer&quot;)         <br>root.geometry(&quot;520x340&quot;)          <br>root.configure(bg=&quot;white&quot;)      </pre><h3>6. Set Up Label And Frame Widgets</h3><p>To display the countdown time, a Label widget is created and configured to show the initial value &quot;00:00:00&quot;. We put the font style and size. Then we put fill=&quot;both&quot; and expand=True so that the label stretches to fill available space.</p><p>To better structure the layout, a separate Frame called middleFrame is created, also with a matching background color. This frame is used to neatly hold and center other widgets like the entry field and start button.</p><pre># Create and place the label to display the countdown time<br>label = tk.Label(<br>    root,<br>    text=&quot;00:00:00&quot;,                 <br>    font=(&quot;Arial&quot;, 20),          <br>    bg=&quot;white&quot;                   <br>)<br>label.pack(fill=&quot;both&quot;, expand=True, padx=5, pady=5)  #<br><br># Create a frame to hold the Entry and Button widgets, for better centering<br>middleFrame = tk.Frame(root, bg=&quot;white&quot;)<br>middleFrame.pack(expand=True) </pre><h3>7. Set Up Entry Widget And Button</h3><p>We creat the entry widget and place it. A default time is set00:00:01&quot; which will display in the entry widget when we open the countdown timer application. To trigger the startTimer() function we creat a button as startButton and placed it. It is linked by command=startTimer.</p><pre># Create the entry widget for the user to input countdown time<br>entryWidget = tk.Entry(<br>    middleFrame,<br>    font=(&quot;Helvetica&quot;, 20),         <br>    justify=&quot;center&quot;,               <br>    width=35                  <br>)<br>entryWidget.pack(pady=5, ipady=20)         <br>entryWidget.insert(0, &quot;00:00:00&quot;) # Set default time (1 second)<br><br># Create the START button to trigger the countdown<br>startButton = tk.Button(<br>    middleFrame,<br>    text=&quot;START&quot;,<br>    bg=&quot;lightblue&quot;,<br>    fg=&quot;black&quot;,<br>    activebackground=&quot;darkblue&quot;,<br>    activeforeground=&quot;red&quot;,                  <br>    command=startTimer            <br>)<br>startButton.pack(pady=5, ipady=15)          </pre><h3>8. Run The Application Loop</h3><p>At the end we must remember to run the application loop as .mainloop() It keeps the application running and responsive. Otherwise, without this line your GUI window will open and close immediatetly.</p><pre>root.mainloop()</pre><p>So, this is how I built a Countdown Timer application using Python tkinter.</p><p>I hope you enjoyed reading this article and found it helpful. I’d love to hear your thoughts — please feel free to share your advice, feedback, or suggestions in the comments. If you’d like to see more of my projects and articles, you can follow me on <a href="https://www.linkedin.com/in/monalisha11/">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa2fa9476982" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Functions in Python: A Detailed Overview]]></title>
            <link>https://medium.com/@monalisha1/functions-in-python-a-detailed-overview-a3b83203f2d5?source=rss-ccfce0926eae------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3b83203f2d5</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python-for-beginners]]></category>
            <category><![CDATA[python-fundamentals]]></category>
            <category><![CDATA[functions-in-python]]></category>
            <category><![CDATA[python-functions]]></category>
            <dc:creator><![CDATA[Monalisha Borgohain]]></dc:creator>
            <pubDate>Wed, 23 Jul 2025 19:45:51 GMT</pubDate>
            <atom:updated>2025-08-14T18:52:19.878Z</atom:updated>
            <content:encoded><![CDATA[<p>A function in Python is like a tool that performs a specific task. We can use it whenever we need to do that task, instead of repeating the same code again and again. Here, we will explore Python functions in depth. For a beginner Python developer, it is very important to know every nook and corner of how functions work in Python.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZEB32jZUBDPU3wqf-MPIEg.jpeg" /></figure><h3>Table of Contents</h3><ol><li>Definition of Python Functions</li><li>Why We Use Functions in Python</li><li>Types of Function in Python</li></ol><ul><li>Built - in Function</li><li>User Defined Function</li></ul><p><em>You can explore the project here on</em> : <a href="https://github.com/monalisha99/Functions-in-Python.git">GitHubReopsitory</a></p><h3>1. Definition of Python Functions</h3><p>A function in Python is a group of lines of reusable code that performs a specific task when called. We need to creat the block of code once and can use it many times to do the same job. Let’s try to understand through a simple example.</p><pre>def greet():<br>    print(&quot;Hello&quot;)<br>greet()    # call the function<br><br># output: Hello</pre><p>Here, def stands for &quot;define&quot;. We use def to start defining a function. Then we create a function called- greet(). When we call the function later, it prints the output -Hello.</p><h3>2. Why We Use Functions in Python</h3><p>From the definition, we already get a basic idea that a function in Python is used for a repeatable task. Besides, functions are very helpful for many reasons in Python. The following are the reasons why we use functions in Python.</p><p><strong>2.1 Python Functions are Reusable</strong></p><p>We write a function once and then use it multiple times. We don’t need to write the same code again and again.</p><pre>def greet_name():<br>    print(&quot;Hello&quot;)<br>greet_name()<br><br># output: Hello</pre><p>Here, we print Hello, if we want to print Hi good morning! we simply use the same function- greet_name().</p><p><strong>2.2 Python Functions Improve Readability</strong></p><p>Functions make it easier to manage code by dividing a program into smaller, meaningful sections. Each function can perform a specific task, which improves readability and reduces confusion. This also helps when updating, testing, or debugging parts of the code, as we can focus on one function at a time without affecting the whole program.</p><p><strong>2.3 Python Functions Avoid Repetition and reduces program length</strong></p><p>Instead of writing the same code again and again, we can put it in a function and use it whenever needed. This saves time and keeps the code clean and reduces the program length. For example,</p><pre>def greet(name):<br>    print(&quot;Hello,&quot;, name + &quot;! How are you?&quot;)<br><br>greet(&quot;Rahul!&quot;)<br>greet(&quot;Rani&quot;)<br>greet(&quot;Puja&quot;)<br><br># output:<br># Hello, Rahul!! How are you?<br># Hello, Rani! How are you?<br># Hello, Puja! How are you?</pre><p><strong>2.4 Python Functions are Easier to Test and Debug</strong></p><p>Functions make it easier to find and fix mistakes in our code. Since each function handles a small part of the program, we can test it separately to see if it works correctly. If there’s an error, we only need to check that one function instead of going through the whole program. For example,</p><pre>def add_numbers(a, b):<br>    return a + b<br><br># We can test just this part:<br>print(add_numbers(5, 4))  <br>print(add_numbers(11, -2))  <br># output: 9<br>          9</pre><p>If the result is wrong, we know the problem is inside the add_numbers function — not in the rest of our code.</p><p><strong>2.5 Python Functions Support Modular Programming</strong></p><p>Functions help us divide a big program into smaller parts, called modules. Each function can handle a specific task. This makes the whole program easier to understand, manage, and work on, especially when it gets large. For example, in a student result program, we can divide tasks like this:</p><pre>def get_marks():<br>    return [85, 80, 78]<br><br>def calculate_average(marks):<br>    return sum(marks) / len(marks)<br><br>def display_result(avg):<br>    print(&quot;Average Marks:&quot;, avg)<br><br># Main program<br>marks = get_marks()<br>average = calculate_average(marks)<br>display_result(average)<br><br># get_marks() returns [85, 80, 78]<br># sum([85, 80, 78]) = 243<br># len([85, 80, 78]) = 3<br># 243 / 3 = 81<br><br># output: 81.0</pre><p>Each function has its own task, and together they form the complete program. It is easy to manage and debug.</p><p><strong>2.6 Python Functions Help with Collaboration</strong></p><p>In team projects, functions help divide the work. Each person can work on a different function without affecting others. This makes teamwork more efficient and keeps the code well-organized.</p><p><strong>2.7 Python Functions Support Recursion</strong></p><p>Functions can call themselves (recursive functions). We will understand the recursive function in the following explanation. This type of functions is useful for tasks like factorial, tree traversal, etc.</p><pre>def factorial(n):<br>    if n == 1:<br>        return 1<br>    return n * factorial(n - 1)<br>    <br># Call the function<br>print(&quot;Factorial of 4 is:&quot;, factorial(4))<br><br># output: 24</pre><p><strong>2.8 Python Functions Make Code More Flexible</strong></p><p>Functions can accept parameters, making them work with different values. A parameter is a variable used inside the function definition to accept values when the function is called. It makes the function more flexible. For example,</p><pre>def greet(name):             # here, &#39;name&#39; is a prameter<br>    print(&quot;Hello,&quot;, name)<br><br># Call the function<br>greet(&quot;Puja&quot;)                # &quot;Puja&quot;- Argument (Actual value)  <br><br># the parameter- &quot;name&quot; accepts the actual value &quot;Puja&quot; <br><br># output: Hello, Puja</pre><p><strong>2.9 Python Functions Allows Return of Values</strong></p><p>Functions can return results to the part of the program that called them. This is helpful for doing calculations or making decisions based on the result. Instead of just printing the answer, a function can send the result back so it can be used later in the program.</p><pre>def add(a, b):<br>    return a + b<br><br>result = add(7, 11)<br>print(&quot;The sum is:&quot;, result)<br># output: The sum is: 18</pre><p>The function add() returns the result 18, which is stored in the variable result and then printed.</p><p><strong>2.10 Foundation for Advanced Concepts</strong></p><p>Functions are the foundation for many advanced concepts in Python. They are used in object-oriented programming, lambda functions, higher-order functions, and decorators. Learning how functions work helps us understand these advanced topics more easily later on.</p><p>*<em>In this article, we are not going to explain the advanced concepts. For them, we will discuss a different article afterward.</em></p><h3>3. Types of Function</h3><p>Basically functions in Python are two types. They are -</p><p>3.1 Built-in Function</p><p>3.3 User Defined Function</p><p><strong>3.1 Built-in Function</strong></p><p>Functions already available in python are known as built-in functions.</p><p>For example:</p><ul><li>To print something– print()</li><li>To find the length of a string or list– len()</li><li>To take input from the user– input()</li><li>To check the data type– type()</li><li>To convert integer– int()</li><li>To convert string– str()</li><li>To convert float– float()</li><li>To returns largest number– max()</li><li>To return smallest number– min()</li><li>To add all items in a list– sum()</li><li>To return assorted list– sorted()</li><li>To generate a sequence of number– range()</li><li>To returns absolute value– abs()</li></ul><p><strong>3.2 User Defined Function</strong></p><p>A user-defined function is a function that we create ourselves using the def keyword to perform a specific task or set of instructions. For example:</p><pre>def call_name(name):<br>    print(&quot;Hi!&quot;, name)<br>    <br><br># call the function<br>call_name(&quot;Ram&quot;)<br><br># output: Hi! Ram</pre><p>Further, user- defined functions can be classified as follows-</p><p><strong>3.2.1 Function with no parameters and no return value:</strong></p><p>This function performs a task but doesn’t take input or return anything.</p><pre>def greet_people():<br>    print(&quot;Hello! Welcome to Python.&quot;)<br><br>greet_people()<br><br># output: Hello! Welcome to Python.</pre><p><strong>3.2.2 Function with parameters but no return value:</strong></p><p>This function takes input values (arguments) but does not return a result.</p><pre>def greet_user(name):  # here, &quot;name&quot; is a parameter<br>    print(&quot;Hello,&quot;, name)<br><br>greet_user(&quot;John&quot;)   # here &quot;John&quot; is a argument<br><br># output: Hello, John</pre><p><strong>3.2.3 Function with parameters and return value:</strong></p><p>This function takes input and returns a result to the caller.</p><pre>def add__numbers(a, b):<br>    return a + b<br><br>result = add__numbers(25, 5)<br>print(&quot;The sum is:&quot;, result)<br># output: The sum is: 30</pre><p><strong>3.2.4 Function with no parameters but returns a value:</strong></p><p>This function doesn’t take input but sends back a result.</p><pre>def get_welcome_message():<br>    return &quot;Hello! Welcome to our home.&quot;<br><br>message = get_welcome_message()<br>print(message)<br><br># output: Hello! Welcome to our home.</pre><p><strong>3.2.5 Recursive Function:</strong></p><p>A recursive function is a function that calls itself to solve a problem in smaller steps. It must have a base case to stop the recursion, or it will go on forever.</p><pre>def fac_torial(n):<br>    if n == 1:          # base case<br>        return 1<br>    return n * fac_torial(n - 1)  # recursive call<br><br>print(fac_torial(8))     <br><br># Step 1: Function starts with n = 8<br># print(8)          # prints 8<br># print_numbers(7)  # calls itself with n = 7<br><br># Step 2: Now n = 7<br># print(7)<br># print_numbers(6)<br><br># Step 3: n = 6<br># print(6)<br># print_numbers(5)<br><br># ... and it keeps going like that ...<br><br># Eventually: n = 1<br># print(1)<br># print_numbers(0)<br><br># output: 40320</pre><p><strong>3.2.6 Lambda Function (Anonymous Function):</strong></p><p>A lambda function is a short, one-line function that doesn’t use defor a name. For example the addition of number 11 and 8:</p><pre>add = lambda a, b: a + b<br>print(add(11, 8))   <br><br># output: 19</pre><p><strong>3.2.7 Higher-Order Function:</strong></p><p>A function that takes another function as argument or returns a function.</p><pre>def say(name):<br>    return f&quot;Hello, {name}!&quot;<br><br>def higher_order(func, value):<br>    return func(value)<br><br>print(higher_order(say, &quot;Peter&quot;))  <br><br># output: Hello, Peter!</pre><p>Learning how to use functions effectively is essential for writing clean and powerful Python code. If you understand how functions work, mastering them will open the door to more advanced topics like object-oriented programming, modules, and frameworks. This will help you become a confident and skilled Python developer.</p><p>I hope you enjoyed reading this article and found it helpful. I’d love to hear your thoughts — please feel free to share your advice, feedback, or suggestions in the comments. If you’d like to see more of my projects and articles, you can follow me on <a href="https://www.linkedin.com/in/monalisha11/">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3b83203f2d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building A To-Do-List App With Python Tkinter]]></title>
            <link>https://medium.com/@monalisha1/building-my-first-to-do-list-app-with-tkinter-python-f2078afe5df4?source=rss-ccfce0926eae------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2078afe5df4</guid>
            <category><![CDATA[python-web-developer]]></category>
            <category><![CDATA[python-tkinter]]></category>
            <category><![CDATA[tkinter]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Monalisha Borgohain]]></dc:creator>
            <pubDate>Sun, 20 Jul 2025 19:17:50 GMT</pubDate>
            <atom:updated>2025-07-21T14:26:15.019Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9FpR1Q7IcPgbSd1_uGcCXA.png" /><figcaption>To-do list using Tkinter Python</figcaption></figure><p>Hi, I am new to python and aspire to be a python developer. I am taking a 100 day python learning challenge, where I will be learning from basics to advanced concepts. Along with various tools such as Jupyter Notebook, VS Code, GitHub etc.</p><p>To Do List App using Tkinter is my first step at learning GUI ( Graphical User Interface ). Following are the learning objectives:</p><ul><li>Understand GUI ( Graphical user Interface )</li><li>Python Libraries For GUI Development</li><li>Tkinter Basics</li><li>Window Management</li><li>Widgets</li><li>Events</li><li><a href="https://github.com/monalisha99">Github Repository</a></li></ul><p>To create the To-Do-List I have used the following steps. I have described here the process in a simple language. Go through the points and you will understand easily.</p><h3>Table of Content</h3><ol><li>Import Libraries</li><li>Define a Function for Add Button</li><li>Define a Function for Delete Button</li><li>Define a Function for Mousewheel Event</li><li>Getting Started with UI Design</li><li>Set Up Entrybox and Buttons</li><li>Set Up Canvas, Frame and Scrollbar</li></ol><h3>1. Import Libraries</h3><p>We are using python tkinter library and fonts here. Note that these libraries come pre-installed with python. You do not have to install them separately.</p><pre>import tkinter as tk<br>import tkinter.font as font</pre><h3>2. Define a Function for Add Button</h3><p>The following function addTask()is called when the button is clicked(we will see it in a bit).</p><p>We start by retrieving the values entered to an Entrybox widget. Then we are removing white spaces. If the entrybox field has no entries, then we are displaying a suggestion text or placeholder text Enter Task Here ..</p><p>Then we are setting the following conditions before storing tasks to taskList container:</p><ul><li>Entry box should not be empty or Length of string in entry box should not be zero.</li><li>Then we also check if the value is the placeholder text Enter Task Here ... We don&#39;t want this as a task as well.</li></ul><p><strong>Another condition:</strong> We are also clearing the palceholder text once it is displayed.</p><p>Once we are done with the auxiliary conditions, we proceed to task display section. Here we are looping through taskList container and displaying tasks as Label widget. In the following code, the tasks are formatted as Labels. Let&#39;s go through the arguments.</p><ul><li>scrollable_frame: we are using a frame widget to place the widgets so that it can be scrolled up and down.</li><li>text=f&quot;{i+1}. &quot;+ taskList[i] : The task text is formatted to display ith item with numbered prefix.</li><li>.grid: It is a widget placement method in tkinter. Here we are updating rows as number of item increases.</li></ul><pre>taskLabel = tk.Label(scrollable_frame, text=f&quot;{i+1}. &quot;+ taskList[i], font=entry_font)<br>taskLabel.grid(row=i, column=0, sticky=&#39;nw&#39;)</pre><p>Adding Checkboxes is pretty much self explanatory.</p><pre>def addTask(event=None):<br>    entry_box_value = entryBox.get()<br>    entry_box_value = entry_box_value.strip()<br><br>    if len(entry_box_value) == 0:<br>        entryBox.insert(0, &#39;Enter Task Here ..&#39;)<br><br>    if (entry_box_value != &#39;Enter Task Here ..&#39;) and len(entry_box_value)!=0:<br>        # Store tasks to taskList<br>        taskList.append(entry_box_value)<br><br>    if entry_box_value == &#39;Enter Task Here ..&#39;:<br>        # clear the entry box widget<br>        entryBox.delete(0, tk.END)<br><br>    if (len(entry_box_value)!=0) and (entry_box_value is not None) and (len(taskList)!=0):<br>        for i in range(len(taskList)):<br>            taskLabel = tk.Label(scrollableFrame, text=f&quot;{i+1}. &quot;+ taskList[i], font=entry_font)<br>            taskLabel.grid(row=i, column=0, sticky=&#39;nw&#39;)<br><br>            checkBox = tk.Checkbutton(scrollableFrame, font=(&quot;Arial&quot;, 16))<br>            checkBox.grid(row=i, column=1, padx=5)<br><br>        # Update scrollregion<br>        canvas.configure(scrollregion=canvas.bbox(&quot;all&quot;))<br>    <br>        # clear the entry box widget<br>        entryBox.delete(0, tk.END)<br>        </pre><h3>3. Define a Function for Delete Button</h3><p>The following function deleteTask() is used when the Delete button is clicked.</p><p>When the Delete button is clicked, it clears the text in the entry box, removes all items from the taskList, and deletes all the widgets inside the scrollable frame.</p><p>The scrollable_frame is a tk.Frame. The function scrollable_frame.grid_slaves() returns list of widgets inside scrollable_frame object.</p><p>The frame object (or any widget in Tkinter) does not have a built-in .clear() method like a list or dictionary. Therefore, to remove the widgets inside the scrollable_frame we use .destroy() method.</p><pre>def deleteTask(taskList):<br>    # clear the entry box widget<br>    entryBox.delete(0, tk.END)<br>    # clear tasklist container<br>    taskList.clear()<br>    <br><br>    # clear widgets from the scrollable frame<br>    for w in scrollable_frame.grid_slaves():<br>        w.destroy()</pre><h3>4. Define a Function for Mousewheel Event</h3><p>The function mouseWheel() is used to scroll with the mouse wheel in the canvas widget.</p><p>Here,event is an object automatically passed by Tkinter that contains data about the mouse event.</p><p>int(-1 * (event.delta / 120)): event.delta is a attribute of event object. Specifically used for mousewheel event. It returns magnitude of mouse wheel movement.</p><p>The value 120 represents 1 tick or notch of a mousewheel movement.</p><pre>+1 for scroll up (move down 1 unit)<br>-1 for scroll down (move up 1 unit)</pre><pre>def mouseWheel(event):<br>    canvas.yview_scroll(int(-1*(event.delta/120)), &quot;units&quot;)</pre><h3>5. Getting Started with UI Design</h3><p>We start by instantiating the tkinter window. The geometry is set to 660x480. You can modify it to your liking if required. To store the entered tasks we define an empty list as taskList. Following that, we are also setting up a font style as shown in the code below.</p><pre># Designing the User Interface<br>window = tk.Tk()<br>window.title(&quot;Welcome to To-Do list&quot;)<br>window.geometry(&quot;660x480&quot;)<br><br># Define an empty list to store tasks entered<br>taskList =[]<br># set up font style<br>entry_font = font.Font(family=&quot;Monospace&quot;, size=16)</pre><h3>6. Set Up Entrybox and Buttons</h3><p>Here, we are adding <strong>Entrybox</strong> and <strong>Buttons</strong>. To place the widgets we will use .grid() geometry. Most of the arguments inside the button widgets are standard. As we can see styling is similar to html syntax. The only difference is, here we have command argument that handles event triggers. For example, in addButton and deleteButton we calladdTask()and deleteTask(),respectively.</p><pre>entryBox = tk.Entry(window, width=48,font=entry_font)<br>entryBox.grid(row=0, column=0, ipady=2, padx=10, pady=10)<br><br>addButton = tk.Button(window, <br>                      text=&quot;Add&quot;,<br>                      font=(&#39;Arial&#39;,11),<br>                      bg=&#39;#89CFF0&#39;,<br>                      fg=&#39;black&#39;, <br>                      activebackground=&#39;blue&#39;, <br>                      activeforeground=&#39;white&#39;, <br>                      command=lambda:addTask())<br>addButton.grid(row=0, column=1, padx=3, ipady=5)<br><br>deleteButton = tk.Button(window, <br>                         text=&quot;Delete&quot;,<br>                         font=(&#39;Arial&#39;,11),<br>                         bg=&quot;#FA5C51&quot;,<br>                         fg=&#39;white&#39;, <br>                         activebackground=&quot;#BA0D01&quot;, <br>                         activeforeground=&#39;white&#39;, <br>                         command=lambda:deleteTask(taskList))<br>deleteButton.grid(row=0, column=2, padx=3, ipady=5)</pre><h3>7. Set Up Canvas, Frame, and Scrollbar</h3><p>Finally, we are setting up canvas, frame, and scrollbar to add scrolling functionality to the widgets. The frame is placed inside canvas widget. The other sub-widgets like labels, checkboxes are rendered inside frame widget.</p><pre>Q. Why are we adding an additional frame? <br>Why aren&#39;t we placing sub-widgets directly onto the canvas?<br><br>Ans: We could do it, it&#39;s not impossible. However in that case, we would <br>have to setup all sub-widgets to react to scroll event individually. <br>Which will require writing additional (uncecessary) code. <br>Here, we only need to scroll the frame. Rest of the sub-widgets move <br>along with it. <br><br>Think of it like a CEO ordering a Manager to run 100 employees.</pre><p>After setting up the widgets as shown in the code below, we are configuring the canvas and linking scrollbar widget to it. The command for scrollbar is command=canvas.yview, which essentially sets scrollbar to act in Y-axis.</p><pre># set up canvas, it will act as master widget<br>canvas = tk.Canvas(window, width=550, height=34 * 20)<br>canvas.grid(row=1, column=0, columnspan=2)<br><br># Create a scrollable frame inside the canvas to hold slave widgets<br>scrollableFrame = tk.Frame(canvas)<br>canvas.create_window((0, 0), window=scrollableFrame, anchor=&quot;nw&quot;)<br><br># add a scrollbar<br>scrollBar = tk.Scrollbar(window, orient=&quot;vertical&quot;, command=canvas.yview)<br>scrollBar.grid(row=1,column=2, sticky=&quot;ns&quot;)<br><br># configure canvas to scroll in y-axis and set scrollbar to it<br>canvas.configure(yscrollcommand=scrollBar.set)</pre><p>Finally we are binding the canvas with mouse wheel event triggers. The function bind_all() opens all widgets inside the master widget to listen to to event trigger. In this case, the widgets will listen to mousewheel trigger.</p><ul><li>&lt;Button-5&gt; is Scroll UP Wheel active</li><li>&lt;Button-4&gt; is Scroll Down Wheel active</li><li>&lt;Return&gt; is Enter Key</li></ul><p>The canvas will scroll by 1 unit for each mouse wheel scroll step. It is seen in the &lt;canvas.yview_scroll(1, &quot;units&quot;)function. For scroll up we are using -1 unit.</p><pre>canvas.bind_all(&quot;&lt;Button-5&gt;&quot;, lambda e: canvas.yview_scroll(1, &quot;units&quot;))   # Linux scroll down<br>canvas.bind_all(&quot;&lt;Button-4&gt;&quot;, lambda e: canvas.yview_scroll(-1, &quot;units&quot;))  # Linux scroll up<br><br># Bind the Enter key to the addTask() function<br>entryBox.bind(&quot;&lt;Return&gt;&quot;, addTask)<br><br>window.mainloop()</pre><h3>Conclusion</h3><p>So that’s all about building a To Do List app using Python Tkinter. I hope you enjoyed reading my blog post. Stay tuned for more. Feel free to comment below for any doubts, feedback, and collboration requests.</p><p>Connect With Me:</p><ol><li><a href="https://github.com/monalisha99]">GitHub</a></li><li><a href="https://www.linkedin.com/in/monalisha11/">LinkedIn</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2078afe5df4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stampedes in India]]></title>
            <link>https://medium.com/@monalisha1/stampedes-in-india-be56cdb5b23f?source=rss-ccfce0926eae------2</link>
            <guid isPermaLink="false">https://medium.com/p/be56cdb5b23f</guid>
            <category><![CDATA[recent-incidents]]></category>
            <category><![CDATA[overcrowding]]></category>
            <category><![CDATA[stampede]]></category>
            <dc:creator><![CDATA[Monalisha Borgohain]]></dc:creator>
            <pubDate>Mon, 24 Feb 2025 16:24:19 GMT</pubDate>
            <atom:updated>2025-03-19T08:54:12.708Z</atom:updated>
            <content:encoded><![CDATA[<p>Human stampedes have recently been seen as a frequently occurring tragedy in India. These incidents happen when a sea of people enter a place and it is overcrowded and a sudden panic of movement leads to piled up on top of one another. As a result, toppling people are unable to breathe and they die. It is heartbreaking to see the deceased which include women and children as well.</p><figure><img alt="AI image of Human stampede" src="https://cdn-images-1.medium.com/max/1024/0*2I6WINrZ6yJfj1dQ" /></figure><h3><strong>Table of Content</strong></h3><ol><li><strong>A List of Recent Human Stampedes in India</strong></li><li><strong>Reasons of Stampede</strong></li><li><strong>How to Tackle the Stampede Deaths</strong></li></ol><h3><strong>1.A List of Recent Human Stampedes in India</strong></h3><p>In India, stampedes occurred at the same festival in different years. For example, Kumbh Mela in Allahabad, Kumbh Mela in Haridwar, and Kumbh Mela in Nashik. Despite all bells and whistles, the administration has failed to prohibit the deaths from stampedes over the years. The following table is some recent stampedes that caused loss of human life.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/19a5132b15ccfd9c61ec4d718ae64cf7/href">https://medium.com/media/19a5132b15ccfd9c61ec4d718ae64cf7/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4XZMmIE9krKp-I69" /></figure><h3><strong>2. Reasons of Stampede</strong></h3><h4>(i) OVERCROWDING</h4><ul><li><strong>Religious Gatherings</strong> — Events like Kumbh Mela, Vaishno Devi pilgrimage, and temple festivals see <strong>millions of devotees</strong>, often exceeding safe limits.</li><li><strong>Political Rallies &amp; Public Events</strong> — Mass gatherings for rallies, protests, and concerts can quickly turn chaotic.</li><li><strong>Transport Hubs</strong> — Overcrowded railway stations (e.g., <a href="https://en.wikipedia.org/wiki/2017_Mumbai_stampede">Elphinstone Bridge stampede, 2017</a>) and bus terminals lead to dangerous situations.</li></ul><h4>(ii) POOR CROWD CONTROL AND INFRASTRUCTURE</h4><ul><li><strong>Narrow Exits &amp; Blocked Pathways</strong> — Small doorways, lack of emergency exits, or barricades create deadly bottlenecks.</li><li><strong>Weak Law Enforcement</strong> — Limited police presence and lack of trained personnel to manage huge crowds.</li><li><strong>Poorly Designed Venues</strong> — Temples, stadiums, and railway stations often lack proper ventilation, pathways, or signage.</li></ul><h4>(iii) PANIC AND RUMOURS</h4><ul><li><strong>False Alarms</strong> — Rumors of bomb threats, landslides, or bridge collapses trigger sudden chaos (e.g., Jodhpur Chamunda Devi Temple, 2008).</li><li><strong>Fear of Missing Out</strong> — People rushing to receive free food, blessings, or entry into a temple often cause uncontrolled pushing (e.g., Ram Janki Temple, 2010).</li></ul><h4>(iv) SUDDEN TRIGGERS</h4><ul><li><strong>Extreme Weather</strong> — Heavy rain, heatwaves, or slippery steps make movement dangerous.</li><li><strong>Structural Failures</strong> — Bridges, railings, or floors collapsing under pressure can lead to panic-driven stampedes (Indore temple stepwell collapse, 2023).</li><li><strong>Vehicle Accidents</strong> — A crash or fire near a crowded place (e.g., Sabarimala Temple, 2011) can lead to stampedes.</li></ul><h4>(v)LACK OF PUBLIC AWARENESS AND DISCIPLINE</h4><ul><li><strong>Pushing &amp; Rushing</strong> — People often ignore safety rules, pushing others in an attempt to move forward.</li><li><strong>Ignoring Safety Warnings</strong> — Overcrowding warnings are often disregarded at religious events.</li><li><strong>No Knowledge of Stampede Survival</strong> — People don’t know how to react safely during a crowd crush.</li></ul><h3><strong>3. How to Tackle the Stampede Deaths</strong></h3><p>It is not very difficult or impossible to deter stampedes. The Government of India must take some appropriate policies and rules on possible gathering areas.</p><h4>(i) BETTER CROWD MANAGEMENT</h4><ul><li><strong>Controlled Entry &amp; Exit:</strong> Implement separate entry and exit points to avoid congestion.</li><li><strong>Limit Crowd Size:</strong> Use pre-registration or token systems for large events.</li><li><strong>Queue Management:</strong> Marked lanes, barricades, and rope barriers to maintain order.</li><li><strong>Live Crowd Monitoring:</strong> Use drones, CCTV, and AI-based crowd density analysis.</li></ul><h4>(ii) IMPROVED INFRASTRUCTURE</h4><ul><li><strong>Wider Pathways &amp; Emergency Exits:</strong> Temples, stadiums, and railway stations must have <strong>unobstructed escape routes</strong>.</li><li><strong>Signage &amp; Public Address Systems:</strong> Clear signage in multiple languages and loudspeakers for announcements.</li><li><strong>Better Public Transport Access:</strong> More frequent trains, buses, and special arrangements during peak events.</li></ul><h4>(iii) EMERGENCY PREPAREDNESS</h4><ul><li><strong>Rapid Response Teams:</strong> Deploy trained security personnel &amp; medical teams on-site.</li><li><strong>First Aid Stations:</strong> Medical help should be easily accessible in large gatherings.</li><li><strong>Mock Drills &amp; Awareness Campaigns:</strong> Educate the public and train organizers on crowd safety.</li></ul><h4>(iv) GOVERNMENT REGULATIONS AND TECH INTEGRATION</h4><ul><li><strong>Strict Event Permissions:</strong> Authorities must enforce safety guidelines before granting permits.</li><li><strong>Use of Mobile Apps &amp; Alerts:</strong> Real-time crowd density updates via apps and SMS alerts.</li><li><strong>Facial Recognition &amp; AI:</strong> Monitor crowd behavior to predict &amp; prevent dangerous situations.</li></ul><h3>5. Public Awareness &amp; Discipline</h3><ul><li><strong>Educate the Public:</strong> Campaigns on what to do in case of a stampede (e.g., don’t push, stay on feet, move sideways).</li><li><strong>Encourage Responsible Behavior:</strong> Follow rules, avoid rushing, and help others.</li></ul><p>The Government of India must take proactive measures to prevent stampedes, as they have been occurring frequently in recent times. Ensuring safety in large gatherings requires a strong focus on preventive actions, including better crowd management, improved infrastructure, and public awareness. Implementing these measures effectively can help reduce the risk of such tragic incidents.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be56cdb5b23f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Emigration in India: Causes, Impacts and Strategies to Retain Talent]]></title>
            <link>https://medium.com/@monalisha1/india-and-its-emigration-36cc69990739?source=rss-ccfce0926eae------2</link>
            <guid isPermaLink="false">https://medium.com/p/36cc69990739</guid>
            <category><![CDATA[emigration-in-india]]></category>
            <category><![CDATA[causes-of-emigration]]></category>
            <category><![CDATA[impacts-of-emigration]]></category>
            <category><![CDATA[how-to-curb-emigration]]></category>
            <dc:creator><![CDATA[Monalisha Borgohain]]></dc:creator>
            <pubDate>Mon, 17 Feb 2025 17:43:39 GMT</pubDate>
            <atom:updated>2025-03-30T18:55:17.613Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GwNyWx1B8b5yObTSQeJ7Fw.jpeg" /></figure><p><em>The NRI family visits their village home once every year. The family back home would show extra welcome. A few remain jealous of their presence. The relatives would boast their presence just because they are from the US.</em></p><p>The reality however may hit different. They may be struggling everyday just to get the day by. Still, why is it so that we glorify emigration to such extent? Why do some even risk everything and take the “donkey route”?</p><p>Continue reading further to get a comprehensive analysis of the scenario of emigration in India.</p><h3>Table of Content</h3><ol><li>The scenario of Indian emigration</li><li>Positive impacts of emigration in India</li><li>Negative Impacts of emigration in India</li><li>How can India retain talent and curb emigration?</li></ol><h4><strong>1. The Scenario of Indian Emigration</strong></h4><p>A swarm of people emigrate from India to countries like USA, UAE, UK and Germany. The countries have authorized procedures for immigrants but many enter illegally. The following bar graph shows emigration from India in last 10 years.</p><figure><img alt="Total Indian Emigration over the last decade" src="https://cdn-images-1.medium.com/max/1024/0*bHo3oy8AX95AdWCV" /><figcaption>Source: <a href="https://www.mea.gov.in/Images/CPV/1863-ls-en-06-12-2024.pdf">Ministry of External Affairs</a></figcaption></figure><p><strong>1.1 ILLEGAL INDIAN EMIGARNTS AS OF 2025</strong></p><p>While the exact figures are unknown, the estimated value is 7,25,000 in the US alone. The following table shows approximate illegal emigrants in various countries.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7235ac0294ce72e4e803e5f73d7f66ed/href">https://medium.com/media/7235ac0294ce72e4e803e5f73d7f66ed/href</a></iframe><p><strong>1.2 REASONS OF EMIGRATION</strong></p><p>The main reasons why every year a large number of people emigrate from India are as follows:</p><ul><li>In search of quality education and exposure.</li><li>In search of better career options or employment opportunities.</li><li>To have a better living standard.</li><li>For advanced healthcare services.</li><li>In hope for better social security.</li><li>To enjoy better environment — away from pollution and chaos etc.</li></ul><p><strong>2. POSITIVE IMPACTS OF EMIGRATION IN INDIA</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VQEpRJQOpq1aiqQiggLZ9w.png" /></figure><p>Emigration from India has both <strong>positive and negative impacts</strong> on the country. First, let’s see how it helps our country.</p><p><strong>2.1 Remittances Boost the Economy</strong></p><p>India receives over $129.1 billion in remittances in 2024, the highest ever for any country. It helps in improvements of living standards, education, healthcare, and infrastructure.</p><p><strong>2.2 Reduction in Unemployment</strong></p><p>With a large population, job opportunities in India are limited. While emigration provides employment abroad, reducing domestic job competition.</p><p><strong>2.3 Skill Development &amp; Knowledge Transfer</strong></p><p>Many emigrants gain advanced skills and experience in countries like the US, UK, and Germany. Some of them return to India, contributing to innovation, research, and entrepreneurship.</p><p><strong>2.4 Strengthening Global Influence</strong></p><p>Indian diaspora strengthens India’s global presence, leading to better diplomatic ties. Besides,successful NRIs (e.g., CEOs of Google, Microsoft) enhance India’s reputation internationally.</p><p><strong>2.5 Growth in Foreign Direct Investment (FDI)</strong></p><p>Many Indian entrepreneurs abroad invest back in India, boosting business and technology sectors. Example: Startups in India get funding from Indian-origin investors in Silicon Valley.</p><p><strong>3. NEGATIVE IMPACTS OF EMIGRATION IN INDIA</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KX0Qo_vCjPP-8ayobEG-tQ.png" /></figure><p>The adverse impacts of emigration are -</p><p><strong>3.1 Brain Drain — Loss of Skilled Workforce</strong></p><p>Highly educated professionals (doctors, engineers, IT specialists) leave for better salaries. It is a significant issue that India loses talent that could contribute to national growth.</p><p><strong>3.2 Labor Shortages in Key Sectors</strong></p><p>Migration of doctors, nurses, and IT professionals creates shortages in India. Example: Many Indian doctors work in the UK and US, leading to a doctor-patient ratio crisis in India.</p><p><strong>3.3 Social Impact &amp; Family Separation</strong></p><p>Families split due to migration, leading to emotional distress. In many families, elderly parents are left alone, affecting their well-being and care.</p><p><strong>3.4 Illegal Migration Issues</strong></p><p>Many Indians take risky routes (e.g., through Mexico to the US). It increases human trafficking, visa fraud, and labor exploitation.</p><p><strong>3.5 Economic Dependence on Remittances</strong></p><p>Over-reliance on remittances can make some Indian states (like Kerala, Punjab) <strong>v</strong>ulnerable to global economic changes. If Gulf countries reduce migrant labor, it directly impacts India’s economy.</p><h4><strong>4. How can India retain talent and curb emigration?</strong></h4><p>A vast numer of Indian talents leave India to settle in other countries. For the growth and prosperity of India, it is necessary, to retain and protect this talent. The following are some points how we can retain talent and curb emigration -</p><p><strong>4.1 Job Creation</strong>: The Government of India should prioritize employment generation across various sectors. Expanding job opportunities within the country can encourage Indian professionals to build their careers at home rather than seeking permanent relocation abroad.</p><p><strong>4.2 Tax Concession on Research and Innovation</strong>: Conducting research and innovation in India is highly expensive. If the Government of India provides tax concessions in these fields, it would greatly support researchers’ futures. This, in turn, could reduce the incentive to move abroad.</p><p><strong>4.3 Conducting Reliable Examinations: </strong>In India, state and central government examinations often lack reliability and security. Widespread corruption in many systems threatens students’ futures, leading to uncertainty. Therefore, ensuring fair and transparent job placement examinations is crucial to restoring students’ trust and confidence in their future.</p><p><strong>4.4 Motivation for Self</strong>-<strong>Employment: </strong>Due to India’s large population, it is not possible to create job vacancies for all unemployed individuals. Therefore, policies should be implemented to encourage self-employment among young people.</p><p><strong>4.5 Focus More on Backward Regions: </strong>Backward regions in India have fewer facilities compared to developed areas. Therefore, more focus should be given to their development so that people can find comfort and opportunities in their own communities.</p><p>By investing in education, research, and infrastructure, India can strike a balance between reaping the benefits of global migration and retaining talent for national progress. Sustainable policies and strategic planning will be essential in ensuring that emigration remains a strength rather than a challenge for the country.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36cc69990739" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Beloved Pets: The Heartbeat of My House]]></title>
            <link>https://medium.com/@monalisha1/my-beloved-pets-the-heartbeat-of-my-house-8bcd3e874689?source=rss-ccfce0926eae------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bcd3e874689</guid>
            <category><![CDATA[pets]]></category>
            <category><![CDATA[naughty-pets]]></category>
            <category><![CDATA[happy-pillars-of-home]]></category>
            <category><![CDATA[life-with-my-pets]]></category>
            <category><![CDATA[my-happiness]]></category>
            <dc:creator><![CDATA[Monalisha Borgohain]]></dc:creator>
            <pubDate>Wed, 20 Nov 2024 14:54:44 GMT</pubDate>
            <atom:updated>2024-11-20T15:33:29.330Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A Cat’s special place, a puppy and two grazing Rabbits" src="https://cdn-images-1.medium.com/max/1024/1*kK-l-TxwcLOKZWD_hAOUmQ.png" /><figcaption>My Beloved Pets</figcaption></figure><p>It is not uncommon to keep pets at my home as I am an animal lover. I have been with pets since my birth. So naturally I am able to connect with them easily. One might wonder how on earth we have so many pets. Do we have enough time to manage all of them? Is it not tiresome and expensive at the same time? You may be right to think, however trust me they are equally rewarding. In this article, I will share little stories of their habits and behavior. Following is the list of pets that we have.</p><ol><li>Alu the Overjoyed Puppy</li><li>Munujan and Gavo, the Detective Cats</li><li>Susmita the Kung Fu Goat</li><li>Botaski and Ranguski, The Bunnies</li><li>Aquarium Fishes</li><li>Bulbuli, The Rescued Puppy</li></ol><figure><img alt="A standing Rabbit and a Cat playing with a Puppy" src="https://cdn-images-1.medium.com/max/1024/0*lfF1bdKx_PdnbT9b" /><figcaption>One of My Bunnies While Standing and a Playing Cat with My Puppy</figcaption></figure><h3>1. Aalu Puppy, The Fourth Child</h3><p>Aalu is a local breed, a bit smaller than typical Indian. He was gifted by one of our neighbors. As of today, he is two years old. He has also taken place as the fourth child after my brother and sister. Especially after the three of us left home for work and higher studies purposes, Alu became king of the house with property rights. Currently, he lives with Mom and Dad. However, when we do visit home, he will be the one to be most excited about our arrival, unconditionally.</p><p>Aalu is very pretentious and always loves to wander here and there. Whenever I call him, “Let’s get a bath” the next moment he won’t come near me. He is often covetous of my other pets and perturb them.</p><p>Aalu likes to show his heroism through chasing away the monkeys from my vegetable farm. He doesn’t like other dogs coming near to my house. He not only guards my house but my neighbors houses also.</p><figure><img alt="Left-A Dog wearing Assamese Gamusa and Right- the Dog is sleeping with two Cats" src="https://cdn-images-1.medium.com/max/1024/0*CZoi1r8AM4BkEkSB" /><figcaption>Leftside- My naughty Puppy Alu and Rightside- Alu with my Cats</figcaption></figure><p>One of the most interesting actions of Aalu is that he is too good at stealing my hair ribbons, combs, pens, pencils etc. and too expert to collect old clothes, Plastic wastes, and bird feathers.</p><p>He prefers meat to fish and has no interest in biscuits. However, he has a special preference for sweets like ‘Rasgulla’.</p><h3>2. Munujan and Gavo, The Detective Cats</h3><figure><img alt="One Cat is Sitting on a boundary stump and two cats are climbing on a tree" src="https://cdn-images-1.medium.com/max/1024/0*kbciZbqYpuDFwDO7" /><figcaption>Picture of my Two cats (Munu Jan and Gavo)</figcaption></figure><p>Munu Jan and Gavo have no meaning to their names actually. Unfortunately their mother ‘Gayotri’ was run over by a car when they were small. Luckily, they had grown enough to eat other things besides milk at that time. They are two years old as of today.</p><p>As all the cats do, my cats love to eat fish. What makes my cats different from others is that they fetch fishes on their own. Unbelievable right?</p><p>One day Munu jan came wearing mud shocks from outside. Later I discovered that he went to hunt fish. He usually goes to nearby fisheries or crop lands after rains. He waits for opportunities and grabs the best ones. You would not believe the size of the fishes that he carries. He never eats raw fish. He will drop the fish in front of me and wait till I clean and cook the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8Sy3mZ-kTr9Dad33" /><figcaption>Cat carrying a fish( An AI generated image)</figcaption></figure><p>I found out that Munu Jan is much more clever than my other cat ‘Gavo’. He has never fetched a single fish till date. Or maybe he is just lazy. Both of them, however, are very good at demanding things.</p><p>Just like Aalu, both Gavo and Munu love sweets. Three of them have bonded well, as they are living together since they were juveniles. It does not necessarily mean there are no fights.</p><h3>3. Susmita The Kung Fu Goat</h3><p>Currently I have a doe. Like my other pets she also got a name. I call her ‘Susmita’. She had been well nurtured by feeding cow milk. Actually, I was offered two lambs by a woman from the nearest door. The other lamb was named “Jahnavi”. Sadly four months later one of them ate raw sticky rice and passed away.</p><p>She considers me as her mother. Growing with me she is very comfortable with humans. Every time when I call her she responds as ‘Beaaaaa..’. Now she doesn’t like any other goat company. She runs fast towards me if other goats come close to her. Susmita becomes a family member and obviously there is no question of selling her. She often plays boxing with me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O7NS5iY1gZB_SCZVg7o2bQ.png" /><figcaption>Susmita, fighting Moments with Us</figcaption></figure><h3>4. Botaski and Ranguski, the Bunnies</h3><p>Rabbits are silent animals but with very good hearing. When we bought a pair of rabbits, initially we were regretting it. They were not used to people I guess. For the first ten days, they messed up everything. Littering here and there. No reaction to our calls, not understanding anything. It took us time to train them and bond well with us. Cleaning up their mess is a real headache until potty training is complete.</p><figure><img alt="Two baby brown-white Rabbits in the grass" src="https://cdn-images-1.medium.com/max/1024/1*ApqZAC1URlhYrQgMZJoCDg.png" /><figcaption>Baby Bunnies (Botaski and Ranguski)</figcaption></figure><p>Botaski and Ranguski are free roaming in my place. We don’t want to cage any pets, that’s what makes it a little difficult to clean up their mess.</p><p>As of today, they will be the first ones to greet me when I enter the room. They are super cute when they stand on two legs. Now, when I sit near them, they will climb up on me.</p><p>Botaski and Ranguski are quite vigilant. When Botaski and Ranguski hear a loud sound they hide rapidly in a safe place. It is so funny to see them try running. They slip on tiles which look like they are running on a treadmill for a moment.</p><p>They like to eat cabbage, potatoes, tomatoes, and fruits. For some reason, both of them are not interested in carrots even for a tiny bit. Their best place to play and enjoy is the front yard of my house.</p><p>🐰<strong>Fun fact</strong>: A group of baby bunnies is called <strong>Kittens</strong>. I too didn’t know.</p><h3>5. Aquarium Fishes</h3><p>I had 4 firehead tetras but sadly only one of them is alive as of today. I am new with fish, and there is a lot to learn. Look at the following video showing how they respond to me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zLnUPO10EP8vC6jC" /><figcaption>Picture of my aquarium fishes</figcaption></figure><p>Few observations:</p><ul><li>Fishes too recognize their owners, or atleast who feeds them.</li><li>I have a bowl-shaped aquarium. It is not good for the long run. You can not put filters due to their small size.</li><li>Water has to be changed every alternate day.</li><li>Some fishes are not compatible within a tank, there are fights.</li></ul><h3>6. Bulbuli, The Rescued Puppy (Disappeared)</h3><p>One morning I went to a market which was one and half kilometers away from my house. Suddenly a mutilated puppy lying in the middle of the road drew my attention. Her upper little body was covered by blood stains. She desperately wanted help. I returned home and came to her with a plastic basket. I put her into the basket and brought her home. She was severely injured, and her both front legs were fractured. I gave her first aid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H2g0QSwtZGQf25ufZmV5yQ.png" /><figcaption>Bulbuli, The Rescued Puppy</figcaption></figure><p>We though she will not survive. Her will power was strong. She not only recovered but also learnt to walk by crossing her legs. I called her ‘Bulbuli’. With utmost care she had gradually become healthy. She would always express her gratitude and happiness by waiving her tiny tail.</p><p>Aalu however, was not very happy. He was clearly jealous when I was taking care of her. He disturbed her by robbing her meals, and barked at her when he got the chance.</p><p>After four months, she suddenly disappeared. I don’t know exactly what happened to her. We searched a lot but no traces of her was found. She left home or was taken away by someone is yet unknown.</p><h3>Conclusion</h3><p>It is majestic to have such amazing pets by my side. I love to spend times with them. Raising pets is like the best companionship at home. For me they are one of the reasons for relaxation and happiness.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bcd3e874689" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Kratky Method of Growing Lettuce]]></title>
            <link>https://medium.com/@monalisha1/kratky-method-of-growing-lettuce-7e603793411d?source=rss-ccfce0926eae------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e603793411d</guid>
            <category><![CDATA[kratky-method]]></category>
            <dc:creator><![CDATA[Monalisha Borgohain]]></dc:creator>
            <pubDate>Wed, 27 Mar 2024 15:06:57 GMT</pubDate>
            <atom:updated>2024-03-27T15:10:23.137Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A lettuce plant through Kratky Method" src="https://cdn-images-1.medium.com/max/1024/1*5-928FtGUTUQAT5VtvatrA.jpeg" /><figcaption>The Kratky Method of lettuce</figcaption></figure><h3>Contents</h3><ol><li><strong>Definition</strong></li><li><strong>Why is it called Kratky ?</strong></li><li><strong>Advantages</strong></li><li><strong>Challenges</strong></li><li><strong>Conclusion</strong></li></ol><h3>Definition</h3><p>The Kratky method is a method of growing plants above a steady nutrient solution base water reservoir. It is a passive hydroponic method since it does not require electricity, pumps and oxygen circulation systems. For rooftop farming, it is very comfortable and easy. However, one can choose any area which captures the minimum sunlight.</p><h3>Why is it called the Kratky Method?</h3><p>Dr. Bernard Kratky invented the popular method of passive hydroponics. After that, it is named as the Kratky method. Leafy crops like lettuce, spinach are favorable for this method.</p><h3>Advantages</h3><p>The Kratky method has many advantages.</p><p><strong>i. No Need of Soil</strong></p><p>This method is purely based on the nutrition-rich water. Without soil, crops are grown very fast.</p><p><strong>ii. Water Conservation</strong></p><p>Crops are developed above a constant reservoir. So there is little waste of water.</p><p><strong>iii. Affordable</strong></p><p>This method is quite affordable. With the use of basic tools like containers, pots etc. a person can open a garden at home.</p><p><strong>iv. Grow Faster</strong></p><p>Crops in this method grow faster compared to other conventional methods of farming.</p><p><strong>v. Indoor Farming</strong></p><p>Farming indoors. However, make sure the area that keeps crops has enough sunlight.</p><p><strong>vi. Low Surveillance</strong></p><p>No need for frequent supervision and maintenance. However, keep a distance from the rainwater.</p><h3>Challenges</h3><p><strong>i. Not Favorable for Large Scale Business</strong></p><p>The Kratky method of farming earns a low income. It is for self consumption not for large business scale oriented.</p><p><strong>ii. Only for Specific Plants</strong></p><p>This method is good mostly on specific plants. For example — lettuce, spinach, celery, strawberries etc. Except for some small leafy crops it is not favorable for other vegetables and crops.</p><p><strong>iii. Attract Pests</strong></p><p>The constant water reservoir may attract pests like mosquitoes.</p><h3>Conclusion</h3><p>Though this Kratky method has some challenges however, anyone can apply this method since it is very simple. If a person has the Kratky Method of farming at home his family’s needs can be fulfilled through buying less amount of groceries from the market. This way, the expenditure on consumption can be reduced by a family.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e603793411d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>