<?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 pavan kancharla on Medium]]></title>
        <description><![CDATA[Stories by pavan kancharla on Medium]]></description>
        <link>https://medium.com/@pavankancharla30?source=rss-ccbcd5207788------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*oOi2aJp4Vr4_LI--</url>
            <title>Stories by pavan kancharla on Medium</title>
            <link>https://medium.com/@pavankancharla30?source=rss-ccbcd5207788------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 10:21:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pavankancharla30/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[SQL, Databases, and DBMS: Understanding the Foundation of Data Management]]></title>
            <link>https://medium.com/@pavankancharla30/sql-databases-and-dbms-understanding-the-foundation-of-data-management-c73b9e562acc?source=rss-ccbcd5207788------2</link>
            <guid isPermaLink="false">https://medium.com/p/c73b9e562acc</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[dbms]]></category>
            <dc:creator><![CDATA[pavan kancharla]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 07:02:14 GMT</pubDate>
            <atom:updated>2026-11-02T07:02:14.635Z</atom:updated>
            <content:encoded><![CDATA[<p>An Introduction to Structured Query Language, Database Systems, and How They Work Together</p><h3>Introduction</h3><p>In today’s digital world, data plays an important role in almost every industry. From banking and shopping to education and healthcare, organizations use data every day.</p><p>But where is this data stored, and how do we manage it? This is where <strong>SQL, Databases, and DBMS</strong> come into the picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UrfdoIsDK_CaSpxcqaAfWw.png" /></figure><h3>1. What is SQL?</h3><p>SQL stands for <strong>Structured Query Language</strong>.</p><p>It is used to communicate with relational databases. SQL helps us insert, retrieve, update, and delete data.</p><p>Example:</p><pre>SELECT * FROM Students;</pre><p>This query retrieves all records from the Students table.</p><h3>Key Features of SQL</h3><ul><li><strong>Database Communication:</strong> Communicates with relational databases.</li><li><strong>Data Management:</strong> Helps create, retrieve, update, and delete records.</li><li><strong>Structured Data:</strong> Works primarily with data organized into tables.</li><li><strong>Platform Independence:</strong> SQL is supported by several database management systems.</li><li><strong>Easy to Learn:</strong> Uses English-like commands and a readable syntax.</li></ul><h3>Where Can We Write SQL Queries?</h3><p>Some commonly used SQL environments include:</p><ul><li>MySQL Workbench</li><li>Microsoft SQL Server Management Studio</li><li>pgAdmin</li><li>Oracle SQL Developer</li><li>Online SQL editors</li></ul><h3>2. What is a Database?</h3><p>A database is an organized collection of data stored electronically.</p><p>For example, a college database may contain student names, ID numbers, courses, and marks.</p><p>Data is commonly organized into tables containing rows and columns.</p><p>The database might contain:</p><ul><li>Student ID</li><li>Student Name</li><li>Age</li><li>Course</li><li>Contact Number</li><li>Marks</li></ul><p>Instead of maintaining this information in separate files, an organization can store it in a structured database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*swwAF-aUjpsoQtaZLjPuMg.png" /></figure><p>Here:</p><ul><li><strong>Table:</strong> Student</li><li><strong>Rows:</strong> Individual student records.</li><li><strong>Columns:</strong> Student ID, Student Name, Course, and Marks.</li></ul><p>A database helps organizations maintain information systematically.</p><h3>3. What is DBMS?</h3><p>DBMS stands for <strong>Database Management System</strong>.</p><p>It is software used to create, store, organize, retrieve, and manage data in databases.</p><h3>How Does a DBMS Work?</h3><p>Consider a simple example.</p><p>When you open a document on your computer, the operating system helps you access the file from storage.</p><p>Similarly, when you execute an SQL query, the DBMS processes your request and interacts with the database to provide the required result.</p><p>A DBMS generally provides:</p><ul><li>Data storage and retrieval.</li><li>Data security and access control.</li><li>Data backup and recovery.</li><li>Data consistency.</li><li>Data manipulation.</li><li>Transaction management.</li></ul><h3>Types of DBMS</h3><p>There are different types of database management systems based on how they organize and manage data.</p><p><strong>1. Relational DBMS (RDBMS)</strong></p><p>An RDBMS stores data in tables consisting of rows and columns.</p><p>Tables can be connected using relationships.</p><p>Examples:</p><ul><li>MySQL</li><li>PostgreSQL</li><li>Microsoft SQL Server</li><li>Oracle Database</li></ul><p><strong>2. Document DBMS</strong></p><p>A document database stores information in document-based formats, commonly JSON-like structures.</p><p>Example: MongoDB.</p><p><strong>3. Network DBMS</strong></p><p>A network database supports relationships in which a record can be connected to multiple other records.</p><h3>How Does SQL Communicate with a DBMS?</h3><p>SQL and DBMS work together to retrieve and manage database information.</p><p>When a user writes an SQL query, the DBMS receives the query and processes it through different internal components.</p><h3>4. SQL vs Python</h3><p>SQL and Python are both useful in Data Science, but they have different purposes.</p><ul><li><strong>SQL:</strong> Used to communicate with databases and retrieve data.</li><li><strong>Python:</strong> Used for programming, data analysis, automation, and machine learning.</li></ul><p>Both technologies work together in many Data Science projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*nq8QNgqnxPb9l4NZU_CmPw.png" /></figure><h3>5. MySQL and MySQL Workbench</h3><p><strong>MySQL</strong> is a relational database management system that uses SQL.</p><p><strong>MySQL Workbench</strong> is a graphical tool that helps users connect to MySQL databases, write SQL queries, and manage database objects.</p><h3>What is MySQL?</h3><p>MySQL is a relational database management system (RDBMS) that uses SQL to manage and interact with structured data.</p><p>It is widely used in web applications, business systems, and data-driven platforms.</p><h3>What is MySQL Workbench?</h3><p>MySQL Workbench is a graphical user interface (GUI) application used to work with MySQL databases.</p><p>It provides a visual environment where users can:</p><ul><li>Connect to MySQL servers.</li><li>Write and execute SQL queries.</li><li>Create and manage database tables.</li><li>View database structures.</li><li>Manage database objects.</li><li>Perform database administration tasks.</li></ul><h3><strong>Important Difference:</strong></h3><p>MySQL is the database management system, whereas MySQL Workbench is the graphical tool used to interact with MySQL.</p><h3>Conclusion</h3><p>SQL, Databases, and DBMS are important foundations of data management.</p><p>Learning these concepts helps us understand how data is stored, organized, and accessed.</p><p>As I continue my Data Science journey, learning SQL is my next step toward becoming confident in working with real-world data.</p><p><strong>Every data journey begins with understanding data!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c73b9e562acc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Functions: Lambda, map(), reduce(), and filter()]]></title>
            <link>https://medium.com/@pavankancharla30/python-functions-lambda-map-reduce-and-filter-3dafcde8d079?source=rss-ccbcd5207788------2</link>
            <guid isPermaLink="false">https://medium.com/p/3dafcde8d079</guid>
            <category><![CDATA[python-map-function]]></category>
            <category><![CDATA[python-filter-function]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[lambda-function]]></category>
            <dc:creator><![CDATA[pavan kancharla]]></dc:creator>
            <pubDate>Tue, 18 Aug 2026 07:17:48 GMT</pubDate>
            <atom:updated>2026-08-18T07:17:48.297Z</atom:updated>
            <content:encoded><![CDATA[<p>Python is known for its simple and readable syntax. While working with data and collections such as lists, we often need to perform operations like transforming values, calculating results, or selecting specific elements.</p><p>Python provides some powerful tools for these tasks: <strong>Lambda functions, </strong><strong>map(), </strong><strong>reduce(), and </strong><strong>filter()</strong>.</p><p>Let’s understand each one with a simple example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AYXgdnXpinfwexHLo3OvvA.png" /></figure><h4>1. Lambda Function</h4><p>A <strong>lambda function</strong> is a small anonymous function. Unlike a normal function created using def, a lambda function is usually written in a single line.</p><p><strong>Example:</strong></p><pre>square = lambda x: x * x<br><br>print(square(5))</pre><p><strong>Output:</strong></p><pre>25</pre><p>Here, the lambda function takes x as input and returns x * x.</p><p>Lambda functions are especially useful when we need a simple function for a short operation.</p><h4>2. map()</h4><p>The <strong>map() function</strong> applies a function to every element of an iterable such as a list.</p><p>It is useful when we want to transform every item in a collection.</p><pre>numbers = [1, 2, 3, 4]<br><br>squares = list(map(lambda x: x * x, numbers))<br><br>print(squares)</pre><p><strong>Output:</strong></p><pre>[1, 4, 9, 16]</pre><p>Here, map() applies the lambda function to every number in the list and produces its square.</p><h4>3. reduce()</h4><p>The <strong>reduce() function</strong> repeatedly applies a function to the elements of a collection and produces a <strong>single final value</strong>.</p><p>The reduce() function is available in Python through the functools module.</p><pre>from functools import reduce<br><br>numbers = [1, 2, 3, 4]<br><br>total = reduce(lambda x, y: x + y, numbers)<br><br>print(total)</pre><p><strong>Output:</strong></p><pre>10</pre><p>Here, reduce() adds the numbers together:</p><p><strong>1 + 2 + 3 + 4 = 10</strong></p><p>So, multiple values are reduced to one final result.</p><h4>4. filter()</h4><p>The <strong>filter() function</strong> is used to select elements from a collection based on a condition.</p><p>It keeps only the elements for which the given function returns True.</p><p><strong>Example:</strong></p><pre>numbers = [1, 2, 3, 4, 5, 6]<br><br>even = list(filter(lambda x: x % 2 == 0, numbers))<br><br>print(even)</pre><p><strong>Output:</strong></p><pre>[2, 4, 6]</pre><p>Here, filter() checks each number and keeps only the numbers that are divisible by 2.</p><h4>Conclusion</h4><p><strong>Lambda, </strong><strong>map(), </strong><strong>reduce(), and </strong><strong>filter()</strong> are useful Python features for performing operations on collections in a concise way.</p><p>Understanding these concepts helps us write Python programs that are <strong>shorter, cleaner, and easier to understand</strong>. These functions are particularly useful when working with lists and data-processing tasks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dafcde8d079" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ The History of Microsoft Excel: From Simple Spreadsheets to AI]]></title>
            <link>https://medium.com/@pavankancharla30/the-history-of-microsoft-excel-from-simple-spreadsheets-to-ai-d8127662d785?source=rss-ccbcd5207788------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8127662d785</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[microsoft-excel]]></category>
            <category><![CDATA[excel]]></category>
            <dc:creator><![CDATA[pavan kancharla]]></dc:creator>
            <pubDate>Tue, 11 Aug 2026 10:26:46 GMT</pubDate>
            <atom:updated>2026-08-12T03:59:00.216Z</atom:updated>
            <content:encoded><![CDATA[<p>How Excel evolved from a simple spreadsheet into one of the world’s most powerful data and business tools</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W8tj5fKCxUYzI5AHh3l5Fg.png" /></figure><h4><strong>Introduction</strong></h4><p>Imagine a world where changing one number in a financial report meant recalculating everything manually.</p><p>That was the reality before electronic spreadsheets transformed the way people worked with numbers.</p><p>Today, Microsoft Excel is everywhere.</p><p>Students use it for assignments.<br>Teachers use it for marks and attendance.<br>Businesses use it for sales and financial reports.<br>Data analysts use it for data cleaning and analysis.<br>HR teams use it for employee records.<br>Finance teams use it for budgets and forecasting.</p><p>And now, Excel is entering another major phase: <strong>Artificial Intelligence.</strong></p><p>But how did Excel become so important?</p><p>Let’s go back to the beginning.</p><h4>🕰️ Before Excel: The Beginning of Electronic Spreadsheets</h4><p>Before spreadsheet software, people depended heavily on paper, calculators, and manual accounting systems.</p><p>If one value changed, many calculations had to be performed again.</p><p>The idea of an electronic spreadsheet changed everything.</p><p>In <strong>1979</strong>, VisiCalc became one of the first successful electronic spreadsheet programs.</p><p>It allowed users to organize information into rows and columns and use formulas to automatically calculate results.</p><p>This introduced a powerful idea:</p><p><strong><em>Change the input → the calculations update automatically.</em></strong></p><p>For businesses, this was revolutionary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C2BopIdC2nkT_udJNJBQog.png" /></figure><p>It features <strong>Dan Bricklin and Bob Frankston</strong>, the inventors of <strong>VisiCalc</strong>, standing beside an early computer running the original VisiCalc spreadsheet.</p><h4>💻 Lotus 1–2–3 Changes the Spreadsheet Industry</h4><p>In <strong>1983</strong>, Lotus Development Corporation introduced <strong>Lotus 1–2–3</strong>.</p><p>It became one of the leading spreadsheet applications of the 1980s.</p><p>Lotus 1–2–3 combined spreadsheet calculations with additional capabilities such as charts, graphs, database functions, and macros.</p><p>The success of Lotus 1–2–3 demonstrated how valuable spreadsheet software could be for businesses.</p><p>The competition for the spreadsheet market was becoming intense.</p><p>And Microsoft was ready to enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CQBLFSeX8LhSiid7mYiZ2g.png" /></figure><p>Here’s the recreated <strong>Lotus 1‑2‑3 spreadsheet interface</strong>, the legendary software that dominated the 1980s and early 1990s before Excel took over.</p><p>It shows the classic <strong>MS‑DOS environment</strong> with blue menu bars, white text, and the iconic function‑key shortcuts at the bottom.</p><h4>🟢 The Birth of Microsoft Excel</h4><p>Microsoft introduced Excel for the <strong>Macintosh in 1985</strong>.</p><p>Microsoft’s historical records show that Excel for Macintosh was shipped to retail stores on <strong>September 30, 1985</strong>, and was described as a spreadsheet combining business graphics with an on-sheet database.</p><p>This was the beginning of Excel’s long journey.</p><p>Unlike many earlier spreadsheet experiences, Excel focused heavily on a graphical and visual interface.</p><p>Users could work with:</p><ul><li>Cells</li><li>Rows</li><li>Columns</li><li>Formulas</li><li>Charts</li><li>Formatting</li><li>Data</li></ul><p>The spreadsheet was becoming much more than a calculator.</p><h4>🪟 Excel Comes to Windows</h4><p>In <strong>1987</strong>, Microsoft announced Excel for Windows.</p><p>As Microsoft Windows became increasingly popular, Excel gained an important advantage.</p><p>Excel continued developing new features while becoming part of Microsoft’s broader productivity ecosystem.</p><p>Over time, Excel became one of the most recognizable productivity applications in the world.</p><h4>📈 Excel Becomes More Than a Spreadsheet</h4><p>Early spreadsheets were primarily focused on calculations.</p><p>Modern Excel is completely different.</p><p>Today, Excel can help users:</p><p><strong>Store → Clean → Calculate → Analyze → Visualize → Report → Automate → Collaborate</strong></p><p>This transformation is one of the biggest reasons Excel has survived for so long.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K4IDePtL1EVRIsG55uroEw.png" /></figure><h4>Here’s a visual of a <strong>modern Excel spreadsheet dashboard</strong> — sleek, data‑driven, and AI‑enhanced.</h4><p>It features interactive charts, a U.S. revenue map, and smart insights powered by Excel’s latest tools like <strong>Power Query</strong>, <strong>Power Pivot</strong>, and <strong>Quick Analysis</strong>. This image perfectly represents how Excel has evolved from simple grids into a full‑fledged analytics platform used for forecasting, visualization, and business intelligence.</p><h4>🔢 What Can We Do With Excel?</h4><p>So, what do people actually use Excel for?</p><p>The answer is: <strong>almost anything involving structured data.</strong></p><p>Here are some of the most common uses.</p><h4>1. Data Entry</h4><p>Excel can be used to organize information into tables.</p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*aIGrQJbvEeh5eiyH6Gbhtg.png" /></figure><p>Instead of keeping information on paper, organizations can maintain structured digital records.</p><h4>2. Calculations</h4><p>Excel contains hundreds of functions that can perform calculations.</p><p>Some commonly used functions include:</p><p>SUM() AVERAGE() COUNT() IF() SUMIF() COUNTIF() XLOOKUP() VLOOKUP() INDEX() MATCH()</p><p>For example:</p><p>=SUM(B2:B10)</p><p>can calculate the total of a range.</p><p>This makes Excel useful for everything from simple calculations to complex business models.</p><h4>3. Data Cleaning</h4><p>Real-world data is rarely perfect.</p><p>It may contain:</p><ul><li>Duplicate records</li><li>Missing values</li><li>Incorrect formats</li><li>Extra spaces</li><li>Inconsistent names</li><li>Wrong data types</li></ul><p>Excel provides tools and functions that can help clean and organize this information.</p><p>For larger or repeated data-cleaning workflows, <strong>Power Query</strong> can connect to data sources, transform data, combine sources, and load the results back into Excel.</p><h4>4. Data Analysis</h4><p>Excel is not just about storing data.</p><p>It can help us understand data.</p><p>For example, imagine a company has 50,000 sales transactions.</p><p>We may want to know:</p><ul><li>Which product sells the most?</li><li>Which region generates the most revenue?</li><li>Which month has the highest sales?</li><li>Which salesperson performs best?</li><li>What is the average order value?</li></ul><p>Excel provides tools such as:</p><p><strong>PivotTables + PivotCharts + Filters + Charts + Data Models</strong></p><p>to answer these questions.</p><p>Microsoft describes PivotTables as tools for summarizing, analyzing, exploring, and presenting data.</p><h4>5. Creating Charts and Dashboards</h4><p>Numbers are useful.</p><p>But visual information is often easier to understand.</p><p>Excel allows users to create:</p><ul><li>Bar charts</li><li>Column charts</li><li>Line charts</li><li>Pie charts</li><li>Area charts</li><li>Scatter plots</li><li>Combination charts</li><li>Interactive reports</li></ul><p>For example:</p><p><strong>Raw Data → PivotTable → Chart → Dashboard</strong></p><p>A manager can look at a dashboard and quickly understand sales performance without reading thousands of rows.</p><h4>6. Financial Analysis</h4><p>Finance is one of Excel’s strongest areas.</p><p>Companies use Excel for:</p><ul><li>Budgets</li><li>Profit and loss statements</li><li>Cash-flow analysis</li><li>Financial forecasting</li><li>Expense tracking</li><li>Investment calculations</li><li>Loan calculations</li><li>Revenue analysis</li></ul><p>Financial professionals have used spreadsheets for decades because Excel provides both flexibility and powerful calculation capabilities.</p><h4>7. Inventory Management</h4><p>Businesses can also use Excel to track inventory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*dOV_RJ6hSVh0HGt-e9pu0w.png" /></figure><p>With formulas, the remaining stock can be calculated automatically.</p><p>Excel can therefore help small and medium-sized businesses manage their products without requiring a complex system for every task.</p><h4>8. Employee and HR Management</h4><p>HR departments commonly work with structured employee information.</p><p>Excel can be used for:</p><ul><li>Employee lists</li><li>Attendance</li><li>Leave tracking</li><li>Salary calculations</li><li>Performance reports</li><li>Recruitment tracking</li><li>Training records</li></ul><p>For example, HR can maintain an employee database and use filters to find employees based on department, experience, location, or other criteria.</p><h4>9. Education and Student Projects</h4><p>Excel is extremely useful in education.</p><p>Students can use Excel for:</p><ul><li>Marksheets</li><li>Attendance</li><li>Statistics</li><li>Research projects</li><li>Survey analysis</li><li>Charts</li><li>Assignments</li><li>Financial calculations</li></ul><p>For statistics students, Excel can also be useful for exploring datasets and creating visualizations before moving to more specialized statistical or programming tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fcj7mKWj489LR9WhW421kw.png" /></figure><h4>🌎 Where Do We Use Excel?</h4><p>Excel is used across many industries.</p><h4>🏢 Business</h4><p>Sales, operations, reporting, budgeting, and planning.</p><h4>🏦 Banking and Finance</h4><p>Financial models, calculations, forecasting, and analysis.</p><h4>🏥 Healthcare</h4><p>Administrative records, reporting, scheduling, and data analysis.</p><h4>🎓 Education</h4><p>Marks, attendance, student records, research, and projects.</p><h4>🛒 Retail</h4><p>Sales tracking, inventory, pricing, and customer analysis.</p><h4>🏭 Manufacturing</h4><p>Production planning, inventory, quality reporting, and operations.</p><h4>👥 Human Resources</h4><p>Employee information, recruitment, attendance, and salary analysis.</p><h4>📊 Data Analytics</h4><p>Data cleaning, analysis, visualization, reporting, and modeling.</p><h4>🏠 Personal Life</h4><p>Budgets, expenses, savings plans, shopping lists, and personal records.</p><p>In other words:</p><p><strong><em>If there is structured data, there is probably a way Excel can help.</em></strong></p><h4>👑 Why Does Excel Still Rule the World?</h4><p>This is one of the most interesting questions.</p><p>After decades of technological development, why is Excel still so popular?</p><p>There isn’t just one reason.</p><p>There are several.</p><h4>1. Excel Is Extremely Flexible</h4><p>Excel doesn’t force everyone to use it in exactly the same way.</p><p>A student can use it for a simple assignment.</p><p>A small business can use it for invoices and inventory.</p><p>A financial analyst can create a complex financial model.</p><p>A data analyst can connect multiple data sources and build analytical reports.</p><p>The same software serves completely different users.</p><h4>2. Excel Combines Data and Calculation</h4><p>Excel isn’t just a database.</p><p>It isn’t just a calculator.</p><p>It combines:</p><p><strong>Data + Formulas + Analysis + Visualization</strong></p><p>in one environment.</p><p>That combination makes it extremely useful.</p><h4>3. Excel Has a Massive Ecosystem</h4><p>Excel is deeply connected with the Microsoft ecosystem.</p><p>It can work alongside technologies such as:</p><ul><li>Microsoft 365</li><li>Power Query</li><li>Power Pivot</li><li>Power BI</li><li>SharePoint</li><li>Power Automate</li><li>Microsoft Teams</li></ul><p>Power Query can connect to external data sources and transform data, while Power Pivot can build more sophisticated data models.</p><p>This allows Excel to participate in much larger data workflows.</p><h4>4. Excel Can Handle Both Small and Large Tasks</h4><p>Sometimes we only need to calculate a monthly budget.</p><p>“Sometimes we need to analyze hundreds of thousands of rows of data.”</p><p>Modern Excel’s Power Query and Power Pivot capabilities can support much larger analytical workflows than the simple spreadsheet most beginners first encounter. Microsoft describes Power Pivot as supporting analysis of large volumes of data from multiple sources.</p><p>So Excel can grow with the user.</p><h4>🤖 Excel Meets Artificial Intelligence</h4><p>Now we are entering one of the most exciting chapters in Excel’s history.</p><p><strong>AI.</strong></p><p>Microsoft’s current Excel resources highlight capabilities such as analyzing data with Copilot, creating PivotTables and charts with assistance, and using AI to help with data-related tasks.</p><p>Traditionally, a user might ask:</p><p>“Which formula should I use?”</p><p>With AI-assisted tools, users can increasingly describe what they want in natural language.</p><p>For example:</p><p>“Analyze this sales data and show me the top five products.”</p><p>Or:</p><p>“Find unusual changes in monthly revenue.”</p><p>Or:</p><p>“Create a summary of this dataset.”</p><p>This changes the relationship between humans and spreadsheets.</p><p>Instead of only telling Excel <strong>how</strong> to perform a task, users can increasingly describe <strong>what they want to achieve</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K49gBIEWkqM9Oh_-anImQA.png" /></figure><h4>🗓️ Excel Evolution at a Glance</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*yLcEgcgKXVELIvwyqP9soQ.png" /></figure><h4>📊 Excel vs. Modern Data Tools</h4><p>Does Excel mean that tools such as Python, SQL, and Power BI are unnecessary?</p><p><strong>Absolutely not.</strong></p><p>Different tools solve different problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*BCcw8m4n0GrCcervf90izA.png" /></figure><h4>Excel often acts as a bridge between business users and more advanced data technologies.</h4><p>A person might:</p><p><strong>SQL → Extract Data</strong></p><p>↓</p><p><strong>Power Query → Clean Data</strong></p><p>↓</p><p><strong>Excel / Power Pivot → Analyze</strong></p><p>↓</p><p><strong>Power BI → Build Dashboard</strong></p><p>↓</p><p><strong>AI → Assist With Insights</strong></p><p>This is why learning Excel is still valuable even for people entering data science or AI.</p><h4>🚀 The Future of Excel</h4><p>The future of Excel is moving toward:</p><ul><li>Artificial Intelligence</li><li>Automation</li><li>Cloud computing</li><li>Real-time collaboration</li><li>Advanced analytics</li><li>Natural-language interaction</li><li>Data connectivity</li><li>Business intelligence</li></ul><p>Excel is becoming less about manually entering every value and more about helping people <strong>understand and act on data</strong>.</p><p>The spreadsheet is becoming an intelligent workspace.</p><h4>💡 What Excel Teaches Us About Technology</h4><p>The history of Excel gives us a valuable lesson.</p><p>Technology that survives for decades is usually technology that <strong>adapts</strong>.</p><p>Excel adapted from:</p><p><strong>Simple calculations</strong></p><p>to</p><p><strong>Business analysis</strong></p><p>to</p><p><strong>Data modeling</strong></p><p>to</p><p><strong>Cloud collaboration</strong></p><p>and now toward</p><p><strong>Artificial Intelligence.</strong></p><p>That ability to evolve is probably one of the biggest reasons Excel is still here.</p><h4>🏁 Conclusion</h4><p>Microsoft Excel has come a long way from the early days of electronic spreadsheets.</p><p>What started with simple spreadsheet concepts in programs such as VisiCalc eventually evolved through products such as Lotus 1–2–3 and into Microsoft Excel.</p><p>Excel’s journey from its <strong>1985 Macintosh release</strong> to today’s cloud-connected and AI-assisted environment shows how software can continuously evolve with changing technology and user needs.</p><p>Today, Excel is much more than a program for entering numbers.</p><p>It is a platform for:</p><p><strong>Data → Analysis → Visualization → Decision-Making → Automation → AI</strong></p><p>That is what makes the history of Excel so interesting.</p><p>It is not simply the history of a spreadsheet.</p><p>It is the history of how people have learned to <strong>work with data more intelligently.</strong></p><h4><strong>💡 Final Thought</strong></h4><p>“Excel started by helping people calculate numbers. Today, it helps people understand data and make better decisions.”</p><p>The next chapter of Excel’s history may be written not only by spreadsheets, but also by <strong>Artificial Intelligence.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8127662d785" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Nested Indexing: Accessing Data Inside Data Structures]]></title>
            <link>https://medium.com/@pavankancharla30/python-nested-indexing-accessing-data-inside-data-structures-0f8b685584aa?source=rss-ccbcd5207788------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f8b685584aa</guid>
            <category><![CDATA[python-dictionaries]]></category>
            <category><![CDATA[tuples-in-python]]></category>
            <category><![CDATA[nested-indexing]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[lists]]></category>
            <dc:creator><![CDATA[pavan kancharla]]></dc:creator>
            <pubDate>Wed, 05 Aug 2026 06:37:51 GMT</pubDate>
            <atom:updated>2026-08-05T06:37:51.637Z</atom:updated>
            <content:encoded><![CDATA[<p>Python allows us to store data inside other data structures. For example, a list can contain another list, a tuple can contain another tuple, and a dictionary can contain another dictionary.</p><p>When data is stored inside another data structure, we use <strong>nested indexing</strong> to access the required value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lcTXgoihUi8pluY58Sv3vw.png" /></figure><p>In Python, indexing starts from <strong>0</strong>.</p><p>Let’s understand nested indexing with simple examples.</p><h4>1. Getting 20 from a Nested List</h4><p>Consider:</p><pre>data = [10, [20, 30, 40], 50]</pre><p>We need to get 20.</p><p>The outer list is:</p><pre>Index:   0       1              2<br>         ↓       ↓              ↓<br>data = [10, [20, 30, 40],      50]</pre><p>The nested list [20, 30, 40] is at index 1.</p><p>Then, inside that nested list, 20 is at index 0.</p><p>Therefore:</p><pre>print(data[1][0])</pre><p>Output:</p><pre>20</pre><h4>How it works</h4><ul><li>data[1] → [20, 30, 40]</li><li>data[1][0] → 20</li></ul><h4>2. Getting 300 from a Deeply Nested List</h4><p>Consider:</p><pre>data = [100, [200, [300, 400], 500], 600]</pre><p>We need to get 300.</p><p>Let’s look at the indexes:</p><pre>data<br>│<br>├── 100 → index 0<br>│<br>├── [200, [300, 400], 500] → index 1<br>│       │<br>│       ├── 200 → index 0<br>│       ├── [300, 400] → index 1<br>│       │       └── 300 → index 0<br>│       └── 500 → index 2<br>│<br>└── 600 → index 2</pre><p>To reach 300:</p><pre>print(data[1][1][0])</pre><p>Output:</p><pre>300</pre><h4>How it works</h4><ul><li>data[1] → [200, [300, 400], 500]</li><li>data[1][1] → [300, 400]</li><li>data[1][1][0] → 300</li></ul><p>This is an example of <strong>multiple levels of nested indexing</strong>.</p><h4>3. Getting “Manager” from a Nested Tuple</h4><p>Consider:</p><pre>employee = (&quot;John&quot;, (&quot;HR&quot;, &quot;Manager&quot;), 45000)</pre><p>We need to get &quot;Manager&quot;.</p><p>The outer tuple is:</p><pre>Index:       0             1                  2<br>             ↓             ↓                  ↓<br>employee = (&quot;John&quot;, (&quot;HR&quot;, &quot;Manager&quot;),     45000)</pre><p>The nested tuple (&quot;HR&quot;, &quot;Manager&quot;) is at index 1.</p><p>Inside that tuple:</p><pre>Index:       0          1<br>             ↓          ↓<br>           (&quot;HR&quot;, &quot;Manager&quot;)</pre><p>So &quot;Manager&quot; is at index 1.</p><p>Therefore:</p><pre>print(employee[1][1])</pre><p>Output:</p><pre>Manager</pre><h4>How it works</h4><ul><li>employee[1] → (&quot;HR&quot;, &quot;Manager&quot;)</li><li>employee[1][1] → &quot;Manager&quot;</li></ul><h4>4. Getting 500 from a Nested Tuple</h4><p>Consider:</p><pre>data = (100, (200, (300, 400), 500), 600)</pre><p>We need to get 500.</p><p>The outer tuple contains another tuple at index 1:</p><pre>data<br>│<br>├── 100 → index 0<br>│<br>├── (200, (300, 400), 500) → index 1<br>│       │<br>│       ├── 200 → index 0<br>│       ├── (300, 400) → index 1<br>│       └── 500 → index 2<br>│<br>└── 600 → index 2</pre><p>Therefore:</p><pre>print(data[1][2])</pre><p>Output:</p><pre>500</pre><h4>How it works</h4><ul><li>data[1] → (200, (300, 400), 500)</li><li>data[1][2] → 500</li></ul><p>Notice that we don’t need to access (300, 400) because 500 is directly at index 2 of the inner tuple.</p><h4>5. Getting Math Marks from a Nested Dictionary</h4><p>Consider:</p><pre>student = {<br>    &quot;name&quot;: &quot;Rahul&quot;,<br>    &quot;marks&quot;: {<br>        &quot;Math&quot;: 90,<br>        &quot;Science&quot;: 95<br>    }<br>}</pre><p>We need to get the marks for &quot;Math&quot;.</p><p>Here, &quot;marks&quot; is a key in the outer dictionary.</p><p>The value of &quot;marks&quot; is another dictionary:</p><pre>{<br>    &quot;Math&quot;: 90,<br>    &quot;Science&quot;: 95<br>}</pre><p>Inside this dictionary, &quot;Math&quot; is the key and 90 is its value.</p><p>We can access it using:</p><pre>print(student[&quot;marks&quot;][&quot;Math&quot;])</pre><p>Output:</p><pre>90</pre><h4>How it works</h4><ul><li>student[&quot;marks&quot;] → {&quot;Math&quot;: 90, &quot;Science&quot;: 95}</li><li>student[&quot;marks&quot;][&quot;Math&quot;] → 90</li></ul><p>Unlike lists and tuples, dictionaries use <strong>keys instead of numeric indexes</strong> to access values.</p><h4>6. Getting “Mango” from Mixed Nested Data</h4><p>Consider:</p><pre>data = (<br>    [&quot;Apple&quot;, &quot;Banana&quot;],<br>    {&quot;fruit&quot;: &quot;Mango&quot;, &quot;price&quot;: 120},<br>    (10, 20, 30)<br>)</pre><p>We need to get &quot;Mango&quot;.</p><p>This example contains three different data structures:</p><pre>Tuple<br>│<br>├── List → [&quot;Apple&quot;, &quot;Banana&quot;]<br>│<br>├── Dictionary → {&quot;fruit&quot;: &quot;Mango&quot;, &quot;price&quot;: 120}<br>│<br>└── Tuple → (10, 20, 30)</pre><p>The dictionary is at index 1 of the outer tuple.</p><p>Inside the dictionary, &quot;fruit&quot; is the key whose value is &quot;Mango&quot;.</p><p>Therefore:</p><pre>print(data[1][&quot;fruit&quot;])</pre><p>Output:</p><pre>Mango</pre><h4>How it works</h4><ul><li>data[1] → {&quot;fruit&quot;: &quot;Mango&quot;, &quot;price&quot;: 120}</li><li>data[1][&quot;fruit&quot;] → &quot;Mango&quot;</li></ul><p>This example shows that Python allows us to combine <strong>indexing and dictionary key access</strong> while working with nested data.</p><h4>Conclusion</h4><p>Nested indexing is a useful concept in Python for accessing data stored inside multiple levels of lists, tuples, and dictionaries. By following each level step by step, we can easily reach the required value.</p><p>The key is to remember that <strong>lists and tuples use numeric indexes starting from 0, while dictionaries use keys to access values</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f8b685584aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Sets and Dictionaries: Simple Guide with Examples]]></title>
            <link>https://medium.com/@pavankancharla30/python-sets-and-dictionaries-simple-guide-with-examples-c28f2281866b?source=rss-ccbcd5207788------2</link>
            <guid isPermaLink="false">https://medium.com/p/c28f2281866b</guid>
            <category><![CDATA[python-dictionaries]]></category>
            <category><![CDATA[methods]]></category>
            <category><![CDATA[python-set-operations]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[sets-in-python]]></category>
            <dc:creator><![CDATA[pavan kancharla]]></dc:creator>
            <pubDate>Tue, 04 Aug 2026 13:55:47 GMT</pubDate>
            <atom:updated>2026-08-04T13:55:47.627Z</atom:updated>
            <content:encoded><![CDATA[<p>Python provides several built-in data structures to store and organize data. Two useful data structures are <strong>Sets</strong> and <strong>Dictionaries</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MmMXx2J1dXXgOPEua1RvLQ.png" /></figure><p>In this article, let’s understand the basic <strong>Set operations, Set methods, and Dictionary methods</strong> with simple examples.</p><h4>1. Sets in Python</h4><p>A <strong>set</strong> is an unordered collection of unique elements. Sets are useful when we want to store values without duplicates.</p><h4>Creating a Set</h4><pre>numbers = {10, 20, 30, 40}<br>print(numbers)</pre><p>Output:</p><pre>{10, 20, 30, 40}</pre><p>A set automatically removes duplicate values:</p><pre>numbers = {10, 20, 20, 30, 30}<br>print(numbers)</pre><p>Output:</p><pre>{10, 20, 30}</pre><h4>2. Set Operations</h4><p>Python provides different operations to work with sets.</p><h4>Union</h4><p>Union combines all elements from two sets.</p><pre>a = {1, 2, 3}<br>b = {3, 4, 5}</pre><pre>print(a.union(b))</pre><p>Output:</p><pre>{1, 2, 3, 4, 5}</pre><h4>Intersection</h4><p>Intersection returns the elements that are common to both sets.</p><pre>a = {1, 2, 3}<br>b = {3, 4, 5}</pre><pre>print(a.intersection(b))</pre><p>Output:</p><pre>{3}</pre><h4>Difference</h4><p>Difference returns the elements that are present in the first set but not in the second set.</p><pre>a = {1, 2, 3}<br>b = {3, 4, 5}</pre><pre>print(a.difference(b))</pre><p>Output:</p><pre>{1, 2}</pre><h4>3. Important Set Methods</h4><p>Some commonly used set methods are:</p><h4>add()</h4><p>Adds one element to a set.</p><pre>numbers = {1, 2, 3}<br>numbers.add(4)</pre><pre>print(numbers)</pre><p>Output:</p><pre>{1, 2, 3, 4}</pre><h4>remove()</h4><p>Removes a specified element.</p><pre>numbers = {1, 2, 3}<br>numbers.remove(2)</pre><pre>print(numbers)</pre><p>Output:</p><pre>{1, 3}</pre><h4>discard()</h4><p>Also removes an element from a set.</p><pre>numbers = {1, 2, 3}<br>numbers.discard(2)</pre><pre>print(numbers)</pre><h4>pop()</h4><p>Removes and returns an element from the set.</p><pre>numbers = {10, 20, 30}<br>numbers.pop()</pre><pre>print(numbers)</pre><p>Since sets are unordered, we should not depend on which particular element pop() removes.</p><h4>clear()</h4><p>Removes all elements from the set.</p><pre>numbers = {1, 2, 3}<br>numbers.clear()</pre><pre>print(numbers)</pre><p>Output:</p><pre>set()</pre><h4>4. Dictionaries in Python</h4><p>A <strong>dictionary</strong> stores data in <strong>key-value pairs</strong>.</p><p>For example:</p><pre>student = {<br>    &quot;name&quot;: &quot;Pavan&quot;,<br>    &quot;age&quot;: 22,<br>    &quot;course&quot;: &quot;Python&quot;<br>}</pre><pre>print(student)</pre><p>Here:</p><ul><li>&quot;name&quot; is a key</li><li>&quot;Pavan&quot; is its value</li><li>&quot;age&quot; is a key</li><li>22 is its value</li></ul><p>We can access a value using its key:</p><pre>print(student[&quot;name&quot;])</pre><p>Output:</p><pre>Pavan</pre><h4>5. Important Dictionary Methods</h4><h4>keys()</h4><p>Returns all the keys.</p><pre>student = {<br>    &quot;name&quot;: &quot;Pavan&quot;,<br>    &quot;age&quot;: 22<br>}</pre><pre>print(student.keys())</pre><h4>values()</h4><p>Returns all the values.</p><pre>print(student.values())</pre><h4>items()</h4><p>Returns the key-value pairs.</p><pre>print(student.items())</pre><h4>get()</h4><p>Returns the value associated with a key.</p><pre>print(student.get(&quot;name&quot;))</pre><p>Output:</p><pre>Pavan</pre><h4>update()</h4><p>Adds a new key-value pair or updates an existing value.</p><pre>student.update({&quot;age&quot;: 23})</pre><pre>print(student)</pre><h4>pop()</h4><p>Removes a specified key-value pair.</p><pre>student.pop(&quot;age&quot;)</pre><pre>print(student)</pre><h4>clear()</h4><p>Removes all items from the dictionary.</p><pre>student.clear()</pre><pre>print(student)</pre><p>Output:</p><pre>{}</pre><h4>Conclusion</h4><p>Sets and dictionaries are important Python data structures.</p><p><strong>Sets</strong> are useful for storing unique values and performing operations such as <strong>union, intersection, and difference</strong>.</p><p><strong>Dictionaries</strong> are useful for storing data in <strong>key-value pairs</strong> and provide methods such as keys(), values(), items(), get(), update(), and pop().</p><p>Understanding these concepts helps us write cleaner and more efficient Python programs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c28f2281866b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Logical Operator Precedence: A Guide with Real-World Code]]></title>
            <link>https://medium.com/@pavankancharla30/demystifying-logical-operator-precedence-a-guide-with-real-world-code-419db11181a0?source=rss-ccbcd5207788------2</link>
            <guid isPermaLink="false">https://medium.com/p/419db11181a0</guid>
            <category><![CDATA[operator-precedence]]></category>
            <category><![CDATA[logicaloperators]]></category>
            <category><![CDATA[operators]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[pavan kancharla]]></dc:creator>
            <pubDate>Fri, 26 Jun 2026 09:47:29 GMT</pubDate>
            <atom:updated>2026-06-26T09:47:29.491Z</atom:updated>
            <content:encoded><![CDATA[<p>From Parentheses to Logical or : The absolute chain of command governing conditional logic.</p><h4>Introduction:</h4><h4>What Are Logical Operators?</h4><p>In programming, <strong>logical operators</strong> allow us to combine or manipulate Boolean conditions (statements that evaluate to either True or False). They are the backbone of decision-making in code.</p><p>The three primary logical operators are:</p><ul><li><strong>NOT (Logical Negation):</strong> Flips the Boolean value. If something is True, NOT makes it False.</li><li><strong>AND (Logical Conjunction):</strong> Returns True <em>only</em> if <strong>all</strong> conditions are true.</li><li><strong>OR (Logical Disjunction):</strong> Returns True if <em>at least one</em> condition is true.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8GYWUHvfx4zTdgV9KbcmSw.png" /><figcaption>Ever wondered how Python decides which logical operation to evaluate first? 🤔<br> This infographic explains the precedence of <strong>Parentheses, </strong><strong>not, </strong><strong>and, and </strong><strong>or</strong> with simple examples to make logical expressions easy to understand.</figcaption></figure><h4>The Chain of Command: Operator Precedence</h4><p><strong>Operator precedence</strong> is the set of rules that determines the <strong>order in which Python evaluates different operators</strong> in an expression. When an expression contains multiple operators, Python follows a predefined order to calculate the result correctly.</p><p>Just as in mathematics, multiplication is performed before addition unless parentheses are used. Similarly, Python evaluates arithmetic, comparison, and logical operators according to their precedence.</p><ul><li><strong>Parentheses </strong><strong>()</strong> – Always takes absolute priority. Anything inside () is solved first.</li><li><strong>Logical </strong><strong>NOT () -</strong> Flips the Boolean value. If something is True, NOT makes it False.</li><li><strong>Logical </strong><strong>AND () -</strong> Returns True <em>only</em> if <strong>all</strong> conditions are true.</li><li><strong>Logical </strong><strong>OR () -</strong>Returns True if <em>at least one</em> condition is true.</li></ul><h4>Real-World Example:</h4><p>Suppose a student passes if:</p><ul><li>The average marks are <strong>75 or above</strong>, and</li><li>Attendance is <strong>80% or above</strong>.</li></ul><pre>math = 85<br>science = 75<br>english = 80<br>attendance = 85<br><br>print(((math + science + english) / 3 &gt;= 75) and (attendance &gt;= 80))</pre><p>Output:</p><pre>True</pre><h4>Step-by-Step Evaluation</h4><ol><li>(85 + 75 + 80) = 240</li><li>240 / 3 = 80</li><li>80 &gt;= 75 → True</li><li>85 &gt;= 80 → True</li><li>True and True → True</li></ol><p>This example shows how Python evaluates:</p><ul><li>Parentheses first,</li><li>Then arithmetic operators,</li><li>Then comparison operators,</li><li>Finally, the logical and operator.</li></ul><h4>Case 1: Standard Precedence (The Default Flow)</h4><p><strong>Scenario:</strong> Imagine we are writing code for an automated trading or inventory system. A warehouse wants to trigger an <strong>Automatic Reorder Alert</strong> if a product’s current stock falls below a minimum threshold <strong>AND</strong> the product is highly profitable, <strong>OR</strong> if the product belongs to a critical “Essential Items” category.</p><pre># Variables<br>current_stock = 15<br>min_threshold = 20<br>profit_margin = 0.45       # 45% profit margin<br>is_essential_item = True<br><br># The raw conditional expression<br>trigger_alert = current_stock &lt; min_threshold and profit_margin &gt; 0.50 or is_essential_item<br><br>print(&quot;Trigger Alert Status:&quot;, trigger_alert)</pre><h4>Behind the Scenes Step-by-Step Evaluation:</h4><p><strong>Step 1 (Comparison Operators):</strong> The computer scans for comparisons first</p><ul><li>It evaluates current_stock &lt; min_threshold (15 &lt; 20), which becomes True.</li><li>It evaluates profit_margin &gt; 0.50 (0.45 &gt; 0.50), which becomes False.</li><li><em>Remaining Expression:</em> True and False or is_essential_item</li></ul><p><strong>Step 2 (Logical </strong><strong>AND):</strong> AND takes precedence over OR. The computer evaluates True and False.</p><ul><li>Since both conditions are not true, this evaluates to False.</li><li><em>Remaining Expression:</em> False or is_essential_item</li></ul><p><strong>Step 3 (Logical </strong><strong>OR):</strong> Finally, the computer evaluates False or True (since is_essential_item is True).</p><ul><li><strong>Final Output:</strong> True (The alert triggers because it is an essential item).</li></ul><h4>Case 2: Altering the Flow with Parentheses ()</h4><p>Now, let’s change the business rule. To get a <strong>Loyalty Discount</strong>, a user must be a premium member <strong>OR</strong> spend over $100. <strong>BUT</strong>, regardless of that, their account <em>must</em> be active (not suspended).</p><pre># Variables<br>is_premium = False<br>amount_spent = 120<br>is_account_suspended = False<br><br># Code expression using Parentheses and NOT<br>gets_discount = (is_premium or amount_spent &gt; 100) and not is_account_suspended<br>print(gets_discount)</pre><p><strong>How the computer solves it step-by-step:</strong></p><ol><li><strong>Inside Parentheses First:</strong> It looks inside (is_premium or amount_spent &gt; 100).</li></ol><ul><li>It checks the comparison: 120 &gt; 100 is True.</li><li>It evaluates the or: False or True becomes True.</li><li><em>Current expression:</em> True and not is_account_suspended</li></ul><p><strong>2. Logical </strong><strong>NOT Next:</strong> It evaluates not is_account_suspended (not False), which becomes True.</p><ul><li><em>Current expression:</em> True and True</li></ul><p><strong>3. Logical </strong><strong>AND Last:</strong> True and True evaluates to True.</p><ul><li><strong>Final Output:</strong> True</li></ul><h4>Case 3: Putting it All Together (Arithmetic + Comparison + Logic)</h4><p><strong>Scenario:</strong> A fitness application determines if a user achieves a <strong>“Peak Performance” Tier Bonus</strong> based on a physical calculation. The user must beat a goal score calculated by multiplying their baseline metrics, and they must either be under a certain age or have a premium pass.</p><pre># Variables<br>current_score = 95<br>baseline = 30<br>multiplier = 3<br>age = 24<br>has_premium_pass = False<br><br># Complex Expression<br>achieved_bonus = current_score &gt; baseline * multiplier and not age &gt;= 30 or has_premium_pass<br><br>print(&quot;Achieved Bonus Status:&quot;, achieved_bonus)</pre><h4>Behind the Scenes Step-by-Step Evaluation:</h4><p><strong>Step 1 (Arithmetic Operations):</strong> Math happens first. The computer computes baseline * multiplier (30 * 3 = 90).</p><ul><li><em>Remaining Expression:</em> current_score &gt; 90 and not age &gt;= 30 or has_premium_pass</li></ul><p><strong>Step 2 (Comparison Operations):</strong> The computer processes relational checks left to right.</p><ul><li>current_score &gt; 90 (95 &gt; 90) becomes True.</li><li>age &gt;= 30 (24 &gt;= 30) becomes False.</li><li><em>Remaining Expression:</em> True and not False or has_premium_pass</li></ul><p><strong>Step 3 (Logical </strong><strong>NOT):</strong> The negation is handled. not False becomes True.</p><ul><li><em>Remaining Expression:</em> True and True or has_premium_pass</li></ul><p><strong>Step 4 (Logical </strong><strong>AND):</strong> The conjunction is handled. True and True becomes True.</p><ul><li><em>Remaining Expression:</em> True or has_premium_pass</li></ul><p><strong>Step 5 (Logical </strong><strong>OR):</strong> Finally, True or False evaluates.</p><ul><li><strong>Final Output:</strong> True</li></ul><h4>Conclusion:</h4><p>Mastering operator precedence is the difference between writing robust code and leaving your program’s behavior up to accidental execution order.</p><p>As a best practice: <strong>When in doubt, use parentheses!</strong> Parentheses eliminate ambiguity for the compiler, make your code incredibly easy for other developers to read, and protect your logic from unintended precedence side effects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=419db11181a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Anatomy of Communication in Python: A Deep Dive into print() and input()]]></title>
            <link>https://medium.com/@pavankancharla30/the-anatomy-of-communication-in-python-a-deep-dive-into-print-and-input-302368741552?source=rss-ccbcd5207788------2</link>
            <guid isPermaLink="false">https://medium.com/p/302368741552</guid>
            <category><![CDATA[print-function]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[input-function]]></category>
            <category><![CDATA[python-programming]]></category>
            <dc:creator><![CDATA[pavan kancharla]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 12:56:34 GMT</pubDate>
            <atom:updated>2026-06-19T13:05:38.224Z</atom:updated>
            <content:encoded><![CDATA[<h4>Introduction</h4><p>When you start learning Python, the very first two functions you encounter are print() and input(). They may look simple, but they form the backbone of how a program communicates with the user. In this article, let&#39;s break down how both work, with detailed examples.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kO7hp61EvKaHQLu5hJLK-g.png" /></figure><p>Every interactive program relies on two fundamental actions: <strong>taking information in</strong> and <strong>sending information out</strong>. In Python, these two powerhouse actions are handled by the built-in input() and print() functions.</p><p>Whether you are a beginner writing your first “Hello World” or an intermediate developer debugging complex logic, understanding the nuts and bolts of these two functions is essential. Let’s break down exactly how they work, under the hood and in practice.</p><h3>1. The print() Function</h3><h4>What is print()?</h4><p>The print() function is a built-in Python function used to display information on the console or terminal.</p><p>Whenever the programmer wants to display anything we use print().</p><p>In print() function we can use multiple statements. These statements must be separated by a comma</p><p>print(statement1,statement2,statement3)</p><p>Between output of each print statement there will be a space by default.</p><h4>Example:</h4><pre>x=10<br>y=20<br>z=30<br>print(x,y,z)</pre><pre>10 20 30</pre><h4>Syntax</h4><pre>print(object(s), sep=&#39; &#39;, end=&#39;\n&#39;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4XjJJwkBWY89cywiE6KNow.png" /></figure><h4>Parameters</h4><h4>1. Objects Parameter</h4><h4>Purpose</h4><p>The objects parameter represents the values that you want to display on the screen. You can pass one or more objects to the print() function.</p><h4>Example 1: Single Object</h4><pre>print(&quot;Hello Python&quot;)</pre><p>Output:</p><pre>Hello Python</pre><h4>Example 2: Multiple Objects</h4><pre>name = &quot;Pavan&quot;<br>age = 22<br><br>print(name, age)</pre><p>Output:</p><pre>Pavan 22</pre><h4>Internal Working</h4><p>When multiple objects are provided:</p><ol><li>Python converts each object into a string.</li><li>It joins them using the separator (sep).</li><li>The final string is displayed on the screen.</li></ol><h4>2. sep Parameter (Separator)</h4><h4>Purpose</h4><p>Is used to separate output of multiple statement by specified character.</p><h4>Default Value</h4><pre>sep=&#39; &#39;</pre><p>By default, Python inserts a space between values.</p><h4>Example With sep</h4><pre>print(&quot;2026&quot;, &quot;06&quot;, &quot;19&quot;, sep=&quot;-&quot;)</pre><p>Output:</p><pre>2026-06-19</pre><h4>Example 2</h4><pre>print(&quot;Apple&quot;, &quot;Banana&quot;, &quot;Cherry&quot;, sep=&quot;, &quot;)</pre><p>Output:</p><pre>print(&quot;Apple&quot;, &quot;Banana&quot;, &quot;Cherry&quot;, sep=&quot;, &quot;)</pre><h4>Real-World Use</h4><p>The sep parameter is useful when creating:</p><ul><li>Dates</li><li>CSV-style outputs</li><li>File paths</li><li>Formatted reports</li></ul><h4>3. end Parameter</h4><h4>Purpose</h4><p>It is used to display output across different print function.</p><h4>Using Custom end</h4><pre>print(&quot;Hello&quot;, end=&quot; &quot;)<br>print(&quot;World&quot;)</pre><p>Output:</p><pre>Hello World</pre><h4>Real-World Use</h4><p>The end parameter is commonly used for:</p><ul><li>Progress indicators</li><li>Loading animations</li><li>Formatting output on a single line</li></ul><h3>2. The input() Function</h3><h4>What is input()?</h4><p>The input() function allows users to enter data during program execution.</p><p>It pauses program execution until the user provides input.</p><h4>Syntax</h4><pre>variable_name=input(&quot;Message&quot;)</pre><p>The message is optional but recommended</p><h4>Example</h4><pre>name = input(&quot;Enter your name: &quot;)<br>print(name)</pre><h4>Sample Output</h4><pre>Enter your name: Gopi<br>Gopi</pre><p>The program waits until the user enters a value and presses Enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*74c0QwoOzqRYgsGz-Za8aQ.png" /></figure><h4>Why is input() Important?</h4><p>The input() function:</p><ul><li>Makes programs interactive.</li><li>Collects user information.</li><li>Supports decision-making processes.</li><li>Helps create dynamic applications.</li></ul><h4>Taking User Input</h4><h4>Example 1: Name Input</h4><pre>name = input(&quot;Enter your name: &quot;)<br>print(&quot;Welcome&quot;, name)</pre><p>Output:</p><pre>Enter your name: Pavan<br>Welcome Pavan</pre><h4>Example 2: Age Input</h4><pre>age = input(&quot;Enter your age: &quot;)<br>print(&quot;Your age is&quot;, age)</pre><p>Output:</p><pre>Enter your age: 21<br>Your age is 21</pre><h4>Important Note About input()</h4><p>The input() function always returns data as a string.</p><p>Example:</p><pre>num = input(&quot;Enter a number: &quot;)<br>print(type(num))</pre><p>Output:</p><pre>&lt;class &#39;str&#39;&gt;</pre><p>Even if the user enters a number, Python treats it as a string.</p><h4>Converting Input to Integer</h4><p>To perform calculations, convert input into integers using int().</p><pre>num1 = int(input(&quot;Enter first number: &quot;))<br>num2 = int(input(&quot;Enter second number: &quot;))<br>print(num1 + num2)</pre><p>Sample Output:</p><pre>Enter first number: 10<br>Enter second number: 20<br>30</pre><h4>Converting Input to Float</h4><pre>height = float(input(&quot;Enter your height: &quot;))<br>print(height)</pre><p>Output:</p><pre>Enter your height: 5.8<br>5.8</pre><h4>Combining print() and input()</h4><p>The real power of Python comes when print() and input() are used together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aFkpmy1voeYC5gZx8ycBaA.png" /></figure><h4>Example: Greeting Program</h4><pre>name = input(&quot;Enter your name: &quot;)<br>print(&quot;Hello&quot;, name)</pre><p>Output:</p><pre>Enter your name: Pavan<br>Hello Pavan</pre><h4>Example: Student Information System</h4><pre>name = input(&quot;Enter Student Name: &quot;)<br>roll = input(&quot;Enter Roll Number: &quot;)<br>course = input(&quot;Enter Course: &quot;)<br>print(&quot;\nStudent Details&quot;)<br>print(&quot;Name:&quot;, name)<br>print(&quot;Roll Number:&quot;, roll)<br>print(&quot;Course:&quot;, course)</pre><p>Output:</p><pre>Enter Student Name: Pavan<br>Enter Roll Number: 101<br>Enter Course: Python<br>Student Details<br>Name: Pavan<br>Roll Number: 101<br>Course: Python</pre><h4>Real-Life Applications</h4><p>The print() and input() functions are used in:</p><ul><li>Login systems</li><li>Registration forms</li><li>Banking applications</li><li>Student management systems</li><li>Online surveys</li><li>Quiz applications</li><li>Calculator programs</li></ul><p>These functions serve as the foundation for creating interactive applications.</p><h3>Conclusion</h3><p>The print() and input() functions are among the most fundamental and frequently used functions in Python programming. The print() function enables developers to display information, while the input() function allows users to provide information to the program. Together, they create a communication bridge between the user and the computer.</p><p>Mastering these two functions is an essential first step for every Python programmer. Once you understand how to use them effectively, you can build interactive applications, automate tasks, and create user-friendly programs with confidence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=302368741552" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How the Python Engine Actually Runs Your Code]]></title>
            <link>https://medium.com/@pavankancharla30/how-the-python-engine-actually-runs-your-code-60297ce5d0a7?source=rss-ccbcd5207788------2</link>
            <guid isPermaLink="false">https://medium.com/p/60297ce5d0a7</guid>
            <category><![CDATA[python-engine]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[pavan kancharla]]></dc:creator>
            <pubDate>Fri, 05 Jun 2026 11:43:29 GMT</pubDate>
            <atom:updated>2026-06-05T11:43:29.848Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Python is one of the most popular programming languages in the world today, celebrated for its simplicity, readability, and vast ecosystem. From web development to artificial intelligence, its clean syntax allows developers to write fewer lines of code to achieve complex tasks. However, while Python feels like a high-level, easy-to-read language on the surface, a lot of heavy lifting happens behind the scenes to convert that readable code into something a computer can actually execute.</p><p>To truly master Python, we need to understand its internal engine. Contrary to popular belief, Python isn’t just a pure interpreted language — it’s a blend of compilation and interpretation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QsaPS7zNC7AoDWaoTI8FJA.png" /></figure><h3>What is Python Engine?</h3><p>The Python Engine is the internal execution system responsible for:</p><ul><li>Reading Python code</li><li>Checking syntax</li><li>Converting code into bytecode</li><li>Executing instructions through the Python Virtual Machine (PVM)</li><li>Producing the final output</li></ul><p>The Python Engine acts as a bridge between the programmer and the computer hardware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*JFa8fSOb9spm_zD1iJ4RhQ.jpeg" /></figure><h3>Components of Python Engine</h3><p>The Main Components of python engine are:</p><ol><li>Source Code</li><li>Syntax Checker</li><li>Compiler</li><li>Byte Code</li><li>Python Virtual Machine(PVM)</li></ol><h3>1. Source Code</h3><p>This is the Python code written by the programmer.</p><p><strong>Example :</strong></p><pre>a=&quot;Pavan&quot;<br>print(a)</pre><p>The file is usually saved with a .py extension.</p><h3><strong>2. Syntax Checker</strong></h3><p>It checks whether the syntax of the program is correct or not.</p><p>Duty is to check syntax error.</p><p><strong>Example :</strong></p><pre>print&quot;Hello&quot;</pre><p>If syntax is incorrect, Python raises a syntax error.</p><p><strong>Explanation :</strong></p><p>The Syntax Checker checks:</p><ul><li>Brackets</li><li>Indentation</li><li>Colons</li><li>Function syntax</li><li>Variable declarations</li></ul><p>If any rule is violated, Python stops execution and raises a <strong>Syntax Error</strong>.</p><h3>3. Compiler</h3><p>The compiler converts Python source code into <strong>Bytecode</strong>.</p><p>Bytecode is an intermediate low-level representation of the program.</p><p>Python automatically creates .pyc files containing bytecode.</p><p><strong>Example :</strong></p><pre>a = 5<br>b = 10<br>print(a + b)</pre><h3>4. Byte Code</h3><p>Bytecode acts as an intermediate language between Python source code and machine code.</p><p>Byte code is also know as Object code/Intermediate code/Assemble code.</p><p><strong>Bytecode Representation :</strong></p><pre>LOAD_CONST 5<br>STORE_NAME a<br>LOAD_CONST 10<br>STORE_NAME b<br>LOAD_NAME a<br>LOAD_NAME b<br>BINARY_ADD<br>PRINT_RESULT</pre><p><strong>Purpose of Bytecode :</strong></p><ul><li>Platform independent</li><li>Faster execution</li><li>Easier interpretation by PVM</li></ul><h3>5. Python Virtual Machine (PVM)</h3><p>The Python Virtual Machine is the core component of the Python Engine.</p><p>The PVM:</p><ul><li>Reads bytecode</li><li>Executes instructions line by line</li><li>Converts them into machine-level operations</li></ul><p>The PVM acts like an interpreter.</p><p><strong>Example Execution :</strong></p><pre>x = 20<br>y = 30<br>print(x + y)</pre><p><strong>Internal Process :</strong></p><ol><li>Compiler converts code to bytecode</li><li>PVM reads bytecode</li><li>CPU executes instructions</li><li>Output displayed</li></ol><p><strong>Output </strong>:</p><pre>50</pre><h3>Complete Execution</h3><pre>                 ┌─────────────────────┐<br>                 │   Source Code (.py) │<br>                 │  Written by User    │<br>                 └─────────┬───────────┘<br>                           │<br>                           ▼<br>    <br>                 ┌─────────────────────┐<br>                 │ Syntax Checker /    │<br>                 │                     │<br>                 │ Checks Grammar Rules│<br>                 └─────────┬───────────┘<br>                           │<br>               ┌───────────┴───────────┐<br>               │                       │<br>               ▼                       ▼<br>      ┌────────────────┐      ┌─────────────────┐<br>      │ Syntax Correct │      │  Syntax Error   │<br>      └───────┬────────┘      └─────────────────┘<br>              │<br>              ▼<br>      ┌─────────────────────┐<br>      │      Compiler       │<br>      │ Converts to Bytecode│<br>      └─────────┬───────────┘<br>                │<br>                ▼<br>      ┌─────────────────────┐<br>      │   Bytecode (.pyc)   │<br>      │ Intermediate Code   │<br>      └─────────┬───────────┘<br>                │<br>                ▼<br>      ┌─────────────────────┐<br>      │ Python Virtual      │<br>      │ Machine (PVM)       │<br>      │ Executes Bytecode   │<br>      └─────────┬───────────┘<br>                │<br>      ┌─────────┴─────────┐<br>      │                   │<br>      ▼                   ▼<br>┌──────────────┐   ┌────────────────┐<br>│ Runtime OK   │   │ Logical Error /│<br>│              │   │ Exception      │<br>└──────┬───────┘   └────────────────┘<br>       │<br>       ▼<br>┌─────────────────────┐<br>│ Low Level Machine   │<br>│       Code          │<br>└─────────┬───────────┘<br>          │<br>          ▼<br>┌─────────────────────┐<br>│       Output        │<br>│ Displayed to User   │<br>└─────────────────────┘</pre><h3>Conclusion</h3><p>The Python Engine is responsible for converting Python source code into executable instructions. It performs several stages such as Syntax Checker, compilation into bytecode, execution through the Python Virtual Machine, and exception handling.</p><p>Understanding the internal working of Python helps programmers:</p><ul><li>write efficient programs,</li><li>debug errors effectively,</li><li>and understand how Python executes instructions internally.</li></ul><p>Because of its simple execution process and powerful virtual machine architecture, Python has become one of the most widely used programming languages in the world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60297ce5d0a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>