<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kawalpreet Kaur</title>
    <description>The latest articles on DEV Community by Kawalpreet Kaur (@kawalpreettkaur).</description>
    <link>https://dev.to/kawalpreettkaur</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1135051%2Fd986c52c-2717-4a0a-8ff2-d36c61d979b2.jpeg</url>
      <title>DEV Community: Kawalpreet Kaur</title>
      <link>https://dev.to/kawalpreettkaur</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kawalpreettkaur"/>
    <language>en</language>
    <item>
      <title>Education Mortgage Calculator in Python</title>
      <dc:creator>Kawalpreet Kaur</dc:creator>
      <pubDate>Tue, 08 Aug 2023 04:08:38 +0000</pubDate>
      <link>https://dev.to/kawalpreettkaur/education-mortgage-calculator-in-python-18kh</link>
      <guid>https://dev.to/kawalpreettkaur/education-mortgage-calculator-in-python-18kh</guid>
      <description>&lt;p&gt;&lt;strong&gt;Background&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Hello there! I'm on an exciting journey as I pursue my M.Tech in Computer Science &amp;amp; Engineering. I've been delving into the world of Python, learning its ins and outs. Once I got the hang of the basics, I jumped right into an engaging project for my portfolio. Let me share the story with you!&lt;/p&gt;

&lt;p&gt;Imagine this: I'm right in the middle of figuring out how to fund my education. That's when it hit me—why not make my very own tool to guide me in choosing the best education loan? And that's how my Education Loan Calculator idea came to life.&lt;/p&gt;

&lt;p&gt;You know what I wanted? A simple tool to compare different loan options based on what I need for my studies. I've put my heart into crafting a calculator that considers important stuff like the total loan amount, total interest to be paid , and the loan duration. Hence, painting a clear picture of my financial responsibilities and helps me make smart choices about financing my education.&lt;/p&gt;

&lt;p&gt;Here, is a video showing working of my portfolio project:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/icTw1ucA7H4"&gt;Terminal based Education loan Calculator&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This code defines a Python class called &lt;code&gt;EducationLoanCalculator&lt;/code&gt; that helps calculate and display details about education loan payments. Let's break down how it works step by step:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Initialization (&lt;code&gt;__init__&lt;/code&gt; method):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The class is initialized with two lists: &lt;code&gt;private_banks&lt;/code&gt; containing names of private banks and &lt;code&gt;govt_banks&lt;/code&gt; containing names of government banks.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;format_inr&lt;/code&gt; method is defined to format numeric amounts as Indian Rupees (₹) with two decimal places.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Bank Selection (&lt;code&gt;select_bank_type&lt;/code&gt; and &lt;code&gt;select_bank&lt;/code&gt; methods):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;select_bank_type&lt;/code&gt; displays an ASCII art banner representing the calculator and prompts the user to choose between government and private bank loans.&lt;/li&gt;
&lt;li&gt;Depending on the user's choice, the program sets &lt;code&gt;self.banks&lt;/code&gt; to the respective list of banks.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Bank Selection and Loan Details (&lt;code&gt;select_bank&lt;/code&gt; and &lt;code&gt;get_loan_details&lt;/code&gt; methods):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;select_bank&lt;/code&gt; displays a list of available banks based on the previous choice.&lt;/li&gt;
&lt;li&gt;The user selects a bank, and the chosen bank's name is stored in &lt;code&gt;self.selected_bank_name&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;User Input and Loan Calculation (&lt;code&gt;get_loan_details&lt;/code&gt; and &lt;code&gt;calculate_loan&lt;/code&gt; methods):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;get_loan_details&lt;/code&gt; prompts the user to input the loan amount, interest rate, and loan term.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;calculate_loan&lt;/code&gt; computes the monthly payment, total payment with interest, and total interest paid using mathematical formulas.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Displaying Loan Details (&lt;code&gt;display_loan_details&lt;/code&gt; method):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;display_loan_details&lt;/code&gt; presents the final calculated details of the education loan, including bank name, loan amount, interest rate, loan term, monthly EMI, total interest paid, and total payable with interest.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Running the Calculator (&lt;code&gt;run&lt;/code&gt; method):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;run&lt;/code&gt; method orchestrates the entire process by calling the previously defined methods in the appropriate order.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Main Program (&lt;code&gt;if __name__ == "__main__":)&lt;/code&gt; block:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An instance of the &lt;code&gt;EducationLoanCalculator&lt;/code&gt; class is created.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;run&lt;/code&gt; method of the instance is invoked, initiating the calculator's operation.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When you run this script, the program guides you through selecting a type of bank loan, choosing a bank, entering loan details, calculating payments, and finally displaying the comprehensive education loan details based on your inputs. This object-oriented approach helps organize the program's functionality into well-defined methods and enhances code readability and maintainability.&lt;/p&gt;

&lt;p&gt;For those curious about the inner workings, you can access the complete source code &lt;a href="https://github.com/kawalpreettkaur/educationLoanCalculator"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Summing up my Python basics exploration, I've built something interesting—an Education Loan Calculator. It helps me pick the best education loan by comparing things like loan amount, interest, and time.&lt;/p&gt;

&lt;p&gt;Want to see it in action? Check out this &lt;a href="https://youtu.be/icTw1ucA7H4"&gt;video&lt;/a&gt;. And if you're curious about the code, you can find it on &lt;a href="https://github.com/kawalpreettkaur/educationLoanCalculator"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This project shows how coding can make complex choices easier. Thank You!&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>beginners</category>
      <category>kawalpreettkaur</category>
    </item>
  </channel>
</rss>
