<?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 D.G.S.S.Dhananjana on Medium]]></title>
        <description><![CDATA[Stories by D.G.S.S.Dhananjana on Medium]]></description>
        <link>https://medium.com/@sachinisewmini2002?source=rss-6884abbc87e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LtN38KwgxUG0rN2fWgwNDw.jpeg</url>
            <title>Stories by D.G.S.S.Dhananjana on Medium</title>
            <link>https://medium.com/@sachinisewmini2002?source=rss-6884abbc87e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:38:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sachinisewmini2002/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[Mastering the Basics: A Simple Guide to Version Control and Git]]></title>
            <link>https://medium.com/@sachinisewmini2002/mastering-the-basics-a-simple-guide-to-version-control-and-git-0cf8655cdff2?source=rss-6884abbc87e------2</link>
            <guid isPermaLink="false">https://medium.com/p/0cf8655cdff2</guid>
            <dc:creator><![CDATA[D.G.S.S.Dhananjana]]></dc:creator>
            <pubDate>Sat, 07 Mar 2026 00:39:38 GMT</pubDate>
            <atom:updated>2026-03-07T00:39:38.407Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering the Basics: A Simple Guide to Version Control and Git</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZntZ_1rNhzo8vNzniGvMIg.png" /></figure><p>If you are just starting your journey into coding, you might have heard the word <strong>“Git”</strong> more than a few times. It sounds technical, but the concept is actually very simple. In this post, we’ll break down the essentials of Version Control so you can start managing your projects like a pro.</p><h3>1. What is a Version Control System (VCS)?</h3><p>Imagine you are writing an essay. You save it as essay.docx. Then you make changes and save it as essay_v2.docx, and finally essay_final_v3_REAL_FINAL.docx. This is a messy way to track changes.</p><p>A <strong>Version Control System (VCS)</strong> is software that does this automatically and professionally. It tracks every change you make to your files. If you make a mistake, you can “roll back” to a previous version of your project instantly. It’s like having a <strong>Time Machine</strong> for your code.</p><p><strong>2. Why Do Developers Use Git?</strong></p><p>Git is the most popular Version Control System in the world. Developers love it for several reasons:</p><ul><li><strong>Safety:</strong> You can experiment with new code without the fear of breaking the parts that already work.</li><li><strong>Collaboration:</strong> It allows many people to work on the same project at the same time without overwriting each other’s work.</li><li><strong>Traceability:</strong> It keeps a log of <strong>who</strong> changed <strong>what</strong> and <strong>why</strong>.</li><li><strong>Efficiency:</strong> It is incredibly fast and works on your local computer even without an internet connection.</li></ul><h3>3. Centralized vs. Distributed VCS</h3><p>Not all version control systems work the same way. There are two main types:</p><h4>Centralized VCS (CVCS)</h4><p>In this setup, there is one single server that holds all the versions of the files. To work on a file, you have to “check it out” from that server.</p><ul><li><strong>Risk:</strong> If the server goes down, no one can save their work or see the history.</li></ul><h4>Distributed VCS (DVCS)</h4><p>This is how <strong>Git</strong> works. Every developer has a full copy of the entire project history on their own computer.</p><ul><li><strong>Benefit:</strong> It is much faster, and if the main server crashes, any developer’s computer can be used to restore the project.</li></ul><h3>4. Git vs. GitHub: What’s the Difference?</h3><p>This is the most common point of confusion for beginners. They are related, but they are <strong>not</strong> the same thing.</p><ul><li><strong>Git:</strong> This is the <strong>tool</strong> itself. It is the software you install on your computer to track your files locally.</li><li><strong>GitHub:</strong> This is a <strong>website</strong> (a hosting service). It’s a place on the internet where you can upload your Git projects to share them with others or keep a backup in the “cloud.”</li></ul><blockquote><strong><em>Analogy:</em></strong><em> Think of </em><strong><em>Git</em></strong><em> like your camera (the tool that takes the photos) and </em><strong><em>GitHub</em></strong><em> like Instagram (the platform where you share and store those photos).</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0cf8655cdff2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Find the Factorial Value Using Python]]></title>
            <link>https://medium.com/@sachinisewmini2002/how-to-find-the-factorial-value-using-python-bdcd4fed82f2?source=rss-6884abbc87e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdcd4fed82f2</guid>
            <category><![CDATA[factorials]]></category>
            <dc:creator><![CDATA[D.G.S.S.Dhananjana]]></dc:creator>
            <pubDate>Sun, 16 Nov 2025 06:02:52 GMT</pubDate>
            <atom:updated>2025-11-16T06:02:52.263Z</atom:updated>
            <content:encoded><![CDATA[<p>Factorial is one of the most common mathematical operations used in programming, . If you are learning Python, understanding how to calculate the <strong>factorial of a number</strong> is an excellent way to build your basics in loops, functions, and recursion.</p><p>In this article, you will learn what factorial means and how to calculate it in Python using different methods.</p><h4><strong>What Is a Factorial?</strong></h4><p>A <strong>factorial</strong> is a maths operation that multiplies a number by all the numbers before it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*R_gJCYqnhGrvmJouNNYZ7A.jpeg" /></figure><p>The factorial of a number <strong>n</strong> is written as <strong>n!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*GOV91dW_YY_NN6KEcKgA3Q.jpeg" /></figure><h4><strong>Factorial is used</strong></h4><ul><li>Mathematics</li><li>Combinations &amp; permutations</li><li>Computer algorithms</li></ul><h4><strong>Factorial Using a Loop</strong></h4><p>num = int(input(“Enter a number: “))</p><p>factorial = 1</p><p>for i in range(1, num + 1):<br> factorial *= i</p><p>print(“Factorial of”, num, “is”, factorial)</p><h4><strong>How this works</strong></h4><ul><li>Start factorial as 1</li><li>Multiply it by every number from 1 to num</li><li>Print the result</li></ul><h4>Factorial Using a Function</h4><p>def factorial(n):<br> fact = 1<br> for i in range(1, n + 1):<br> fact *= i<br> return fact</p><p>number = int(input(“Enter a number: “))<br>print(“Factorial value is:”, factorial(number))</p><h4><strong>Factorial Using Recursion</strong></h4><p>def factorial(n):<br> if n == 1 or n == 0:<br> return 1<br> else:<br> return n * factorial(n — 1)</p><p>number = int(input(“Enter a number: “))<br>print(“Factorial value is:”, factorial(number))</p><h4><strong>Using Python’s Built-in Library</strong></h4><p>import math</p><p>num = int(input(“Enter a number: “))<br>print(“Factorial is:”, math.factorial(num))</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdcd4fed82f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vega EVX]]></title>
            <link>https://medium.com/@sachinisewmini2002/vega-evx-a093865c1574?source=rss-6884abbc87e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a093865c1574</guid>
            <dc:creator><![CDATA[D.G.S.S.Dhananjana]]></dc:creator>
            <pubDate>Wed, 14 Dec 2022 21:44:55 GMT</pubDate>
            <atom:updated>2022-12-14T21:44:55.498Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xUF_2iJaK-iJVoEqlv6nKA.jpeg" /><figcaption>Vega EVX Supercar</figcaption></figure><h3>Introduction</h3><p>Today I am going to discuss the first supercar produced in South Asia. Sri Lanka`s Vega company manufactures this supercar known as the vega EVX.</p><p>The serial version prototype of the Vega EVX was to be presented at the Geneva Moter Show in March 2020 but was canceled due to the Covid-19 pandemic. However , the car was unveiled in a live stream at the Geneva Moter Show in 2020.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*bnn18qsYuF33347gqjt7ug.jpeg" /><figcaption>Vega EVX</figcaption></figure><h3>Technology</h3><p>The car weighs 2090 kg out of which , the battery is responsible for 480 kg . The Vega EVX prototype has two 300-kilowatt electric motors each positioned on the front and rear axles, providing it with all-wheel drive and allowing it a cumulation power of 600 kW and 760 N.m of torque.</p><p>The EVX initially receives a small LiFePo4 (lithium iron phosphate ) battery with a capacity of 55 kWh, placed in the rear center position, allowing it a range of 300 kilometers (190 mi ) , before the arrival of a larger battery of 130 kWh (470MJ) increasing its autonomy to 250 kilometers (160 mi).and from 0–100 km/h(0–62 mph) in 3.1 seconds with a top speed of 240 km/h(150 mph).</p><p>VEGA innovation has described the production version of the Vega EVX can accelerate from 0–100 km/h 90–62 mph) in less than two seconds, and achieve a top speed of 380 km/h (240 mph) with a 750 kilometers (470 mi ) battery range.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*433hQYqhIeSLFV_EPgXK5Q.jpeg" /><figcaption>Vega innovations</figcaption></figure><h3>Development</h3><p>In 2013 Vega innovations was founded by Dr. Harsha Subasinhe and co-founder Dr. Beshan Kulapala.</p><p>The product is only limited to 25 units.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*D9PYxP41JwsuwMebf05Wvg.jpeg" /><figcaption>Vega EVX supercar</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a093865c1574" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>