<?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 Muhammed Yuguda on Medium]]></title>
        <description><![CDATA[Stories by Muhammed Yuguda on Medium]]></description>
        <link>https://medium.com/@elemenx93?source=rss-75d559d9d3f9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*peANsPW5mwkl4Ue4</url>
            <title>Stories by Muhammed Yuguda on Medium</title>
            <link>https://medium.com/@elemenx93?source=rss-75d559d9d3f9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:20:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@elemenx93/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[ Let’s dive into the power of Lambda functions, Map, and Filter for a game-changing coding…]]></title>
            <link>https://medium.com/@elemenx93/lets-dive-into-the-power-of-lambda-functions-map-and-filter-for-a-game-changing-coding-bfd6f839c4c4?source=rss-75d559d9d3f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/bfd6f839c4c4</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Muhammed Yuguda]]></dc:creator>
            <pubDate>Wed, 06 Dec 2023 21:48:47 GMT</pubDate>
            <atom:updated>2023-12-06T21:48:47.549Z</atom:updated>
            <content:encoded><![CDATA[<p>🚀 Let’s dive into the power of Lambda functions, Map, and Filter for a game-changing coding experience. 🚀💻</p><h3>🌐 Lambda Functions:</h3><p>Lambda functions are your secret weapon for on-the-fly, anonymous functions. 💡 Think of them as code ninjas that appear exactly where you need them. Check out this snippet:</p><pre>add_two = lambda x: x + 2<br>result = add_two(3)  # Output: 5<br></pre><h3>🗺️ Map: Transforming Lists Like a Pro</h3><p>Map transforms each element of a list with the provided function. Here&#39;s a real-world scenario: doubling all values in a list.</p><pre>numbers = [1, 2, 3, 4, 5]<br>doubled_numbers = list(map(lambda x: x * 2, numbers))<br># Output: [2, 4, 6, 8, 10]<br></pre><h3>🔍 Filter: Selective Elegance</h3><p>Filter, on the other hand, lets you elegantly select elements from a list based on a condition. Let&#39;s filter out even numbers:</p><pre>numbers = [1, 2, 3, 4, 5]<br>filtered_numbers = list(filter(lambda x: x % 2 != 0, numbers))<br># Output: [1, 3, 5]<br></pre><h3>🚀 Putting It All Together: A Game-Changing Example</h3><p>Imagine you have a list of grades, and you want to get the average of all passing grades (above 60). Let&#39;s use Lambda, Map, and Filter in harmony:</p><pre>grades = [75, 80, 45, 90, 50, 65]<br>passing_average = (<br>    sum(filter(lambda x: x &gt; 60, grades))<br>    / len(list(filter(lambda x: x &gt; 60, grades)))<br>)<br># Output: 77.5<br></pre><p>💡 Lambda, Map, and Filter are your allies in creating concise, readable, and powerful Python code. 🚀 Unlock their potential, and watch your code transform into a masterpiece! 🐍💻 #Python #Lambda #Map #Filter #CodingMagic</p><p>Engage with your thoughts and share your favorite Python tricks in the comments! Let&#39;s level up together! 🚀👩‍💻👨‍💻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bfd6f839c4c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering the Command Line: Navigating and Manipulating Files and Directories]]></title>
            <link>https://medium.com/@elemenx93/mastering-the-command-line-navigating-and-manipulating-files-and-directories-89dcf083e75d?source=rss-75d559d9d3f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/89dcf083e75d</guid>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[bash]]></category>
            <dc:creator><![CDATA[Muhammed Yuguda]]></dc:creator>
            <pubDate>Tue, 25 Jul 2023 19:33:57 GMT</pubDate>
            <atom:updated>2023-07-25T19:33:57.982Z</atom:updated>
            <content:encoded><![CDATA[<p>The command-line interface (CLI) or shell is a powerful tool that enables users to interact with their computers using text-based commands. Navigating the shell and manipulating files and directories are fundamental skills that can significantly boost your productivity. In this post, we&#39;ll explore the key concepts and commands for effectively navigating and managing files and directories in the shell.</p><h3>Basic Navigation</h3><p>1. Print Working Directory (`pwd`):</p><pre>pwd<br><br></pre><p>Displays the full path of the current directory.</p><p>2. List Contents (`ls`):</p><pre>ls<br></pre><p>Lists the files and directories in the current folder.<br> - `ls -l`: Detailed list view,</p><pre>ls -l<br></pre><p>including file permissions, ownership, and size.<br> - `ls -a`: Shows hidden files (files starting with a dot).</p><pre>ls -a<br></pre><p>3. Change Directory (`cd`):</p><pre>cd<br></pre><p>Moves to a different directory.</p><p>- `cd folder`: Navigates to &quot;folder.&quot;</p><pre><br>cd Desktop<br><br><br></pre><p>- `cd ..`: Moves up one level (to the parent directory).</p><pre>cd ..<br></pre><p>- `cd ~`: Returns to the user’s home directory.</p><pre>cd ~<br></pre><h3>Manipulating Files and Directories</h3><p>1. Make Directory (`mkdir`): Creates a new directory.<br> - `mkdir folder`: Creates a directory named &quot;folder.&quot;</p><pre>mkdir folder<br></pre><p>2. Create or Update File (`touch`): Creates a new file or updates the timestamp of an existing file.<br> - `touch file.txt`: Creates a new file named &quot;file.txt.&quot;</p><pre>touch file.txt<br></pre><p>3. Copy Files or Directories (`cp`): Copies files or directories.<br> - `cp file.txt newfile.txt`: Copies &quot;file.txt&quot; to &quot;newfile.txt.&quot;</p><pre>cp file.txt newfile.txt<br></pre><p>- `cp -r folder newfolder`: Copies &quot;folder&quot; and its contents to &quot;newfolder.&quot;</p><pre>cp -r folder newfolder<br></pre><p>4. Move or Rename Files/Directories (`mv`):** Moves or renames files or directories.<br> - `mv file.txt newlocation/`: Moves &quot;file.txt&quot; to &quot;newlocation.&quot;</p><pre>mv file.txt newlocation/<br></pre><p>- `mv file.txt newname.txt`: Renames &quot;file.txt&quot; to &quot;newname.txt.&quot;</p><pre>mv file.txt newname.txt<br></pre><p>5. Remove Files/Directories (`rm`): Deletes files or directories.<br> - `rm file.txt`: Deletes &quot;file.txt.&quot;</p><pre>rm file.txt<br></pre><p>-`rmdir folder`: Deletes an empty folder.</p><pre>rmdir folder<br></pre><p>- `rm -r folder`: Deletes &quot;folder&quot; and its contents (be cautious!).</p><pre>rm -r folder<br></pre><h3>File Permissions</h3><p>1. **Change File Permissions (`chmod`):** Modifies file permissions.<br> - `chmod +x script.sh`: Grants execute permission to &quot;script.sh.&quot;</p><pre>chmod +x script.sh<br></pre><p>- `chmod 644 file.txt`: Sets read and write permissions for the owner and read-only for others.</p><pre>chmod 644 file.txt<br></pre><h3>File Content Manipulation</h3><p>1. Display File Content (`cat`): Shows the content of a file.<br> - `cat file.txt`: Displays the content of &quot;file.txt.&quot;</p><pre>cat file.txt<br></pre><p>2. Display First/Last Few Lines (`head` and `tail`): Shows the first or last few lines of a file.<br> - `head file.txt`: Displays the first 10 lines of &quot;file.txt.&quot;</p><pre>head file.txt<br></pre><p>- `tail -n 5 file.txt`: Displays the last 5 lines of &quot;file.txt.&quot;</p><pre>tail -n 5 file.txt<br></pre><h3>Searching and Filtering</h3><p>1. Search in Files (`grep`): Searches for patterns in files.<br> - `grep &quot;pattern&quot; file.txt`: Searches for &quot;pattern&quot; in &quot;file.txt.&quot;</p><pre>grep &quot;pattern&quot; file.txt<br></pre><p>- `grep -r &quot;pattern&quot; folder`: Searches recursively for &quot;pattern&quot; in &quot;folder.&quot;</p><pre>grep -r &quot;pattern<br></pre><h3>Compressing and Archiving</h3><p>1. **Compress and Archive (`tar`):** Compresses and archives files and directories.<br> - `tar -czvf archive.tar.gz folder`: Creates a compressed tar archive of &quot;folder.&quot;</p><pre>tar -czvf archive.tar.gz folder<br></pre><p>- `tar -xzvf archive.tar.gz`: Extracts the contents of &quot;archive.tar.gz.&quot;</p><pre>tar -xzvf archive.tar.gz<br></pre><p>Navigating the shell and manipulating files and directories are essential skills for mastering the command line. With the commands and concepts explained in this post, you can efficiently navigate your file system, create, copy, move, and manage files and directories with ease. Embrace the power of the command line and unlock new levels of productivity in your daily workflow.</p><p>Happy scripting and exploring the command line!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89dcf083e75d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Git and GitHub Collaboration Step-by-Step Guide]]></title>
            <link>https://medium.com/@elemenx93/mastering-git-and-github-collaboration-step-by-step-guide-afe307b4b655?source=rss-75d559d9d3f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/afe307b4b655</guid>
            <dc:creator><![CDATA[Muhammed Yuguda]]></dc:creator>
            <pubDate>Tue, 25 Jul 2023 18:59:42 GMT</pubDate>
            <atom:updated>2023-07-25T19:00:20.240Z</atom:updated>
            <content:encoded><![CDATA[<p>Title: Mastering Git and GitHub Collaboration: A Step-by-Step Guide</p><h3>Introduction</h3><p>Git and GitHub are indispensable tools for modern software development, enabling seamless collaboration among developers. Whether you&#39;re a beginner or an experienced developer, this step-by-step guide will help you become a master at collaborating with Git and GitHub. We&#39;ll cover everything you need to know, from cloning and branching to resolving conflicts and working with personal access tokens. So, let&#39;s dive in!</p><h3>Prerequisites</h3><ul><li>Make sure you have Git installed on your local machine. You can download it from the official website (https://git-scm.com/).</li><li>Sign up for a GitHub account at https://github.com/ if you haven’t already.</li></ul><h3>Cloning a Repository</h3><p>Cloning a repository allows you to get a local copy of a remote repository on your machine. Use these commands to clone a repository:</p><h4>Cloning via HTTPS</h4><pre>git clone https://github.com/username/repo.git<br></pre><h4>Cloning via SSH</h4><pre>git clone git@github.com:username/repo.git<br></pre><h3>To initialize locally</h3><pre>git init<br></pre><p>To check status</p><pre>git status<br></pre><h3>Working with Branches</h3><p>Branches help you work on multiple features or fixes simultaneously without affecting the main codebase. Follow these commands to create and manage branches:</p><h4>Create and Switch to a New Branch</h4><pre>git checkout -b new-feature<br></pre><h4>Switch to an Existing Branch</h4><pre>git checkout existing-branch<br></pre><h4>List All Branches</h4><pre>git branch<br></pre><h4>Delete a Branch (Locally)</h4><pre>git branch -d branch-name<br></pre><h4>Delete a Branch (Remotely)</h4><pre>git push origin --delete branch-name<br></pre><h3>Making and Committing Changes</h3><p>After making changes to your files, stage and commit them using these commands:</p><h4>To add files to Staging area</h4><ul><li>add a single file</li></ul><pre>git add {file_name}<br><br></pre><ul><li>add all files</li></ul><pre>git add .<br></pre><ul><li>undo adding a file</li></ul><pre>git rm --cached -r {file_name}<br></pre><ul><li>undo adding all files</li></ul><pre>git rm --cached -r .<br></pre><h4>To commit changes</h4><pre>git commit -m &#39;commit message&#39;<br></pre><h4>To check commits</h4><pre>git log<br></pre><h4>To rollback to previous version</h4><pre>git checkout {file_name}<br></pre><h3>Collaborating with Remote Repository</h3><p>Collaborating with others often involves pushing, pulling, and merging changes. Use these commands:</p><h4>Push Changes to Remote Repository</h4><pre>git push origin branch-name<br></pre><h4>Fetch Changes from Remote Repository</h4><pre>git fetch<br></pre><h4>Pull Changes and Merge</h4><pre>git pull<br></pre><h4>Merge Changes from a Branch</h4><pre>git merge source-branch<br></pre><h4>Rebase the Current Branch</h4><pre>git rebase target-branch<br></pre><h3>Resolving Conflicts</h3><p>When conflicts occur during a merge or rebase, follow these steps to resolve them:</p><pre>git add .<br>git rebase --continue<br></pre><h3>Collaborating on Pull Requests</h3><p>Create a new branch for a feature or bug fix, make changes, and create a pull request using these commands:</p><pre>git checkout -b new-feature<br># Make changes and commit as usual<br>git push origin new-feature<br></pre><h3>Syncing a Forked Repository</h3><p>Sync your forked repository with the original repository to keep it up-to-date:</p><pre>git remote add upstream https://github.com/original_username/original_repo.git<br>git fetch upstream<br>git merge upstream/master<br>git push origin master<br></pre><h3>Using Personal Access Tokens</h3><h4>Cloning with Classic Token (Method 1)</h4><pre>git clone https://github.com/username/repo.git<br>cd repo<br>git config --local credential.helper &quot;store --file=.git/credentials&quot;<br>echo &quot;https://github.com:${USERNAME}:${YOUR_TOKEN}&quot; &gt; .git/credentials<br></pre><h4>Cloning with Classic Token (Method 2)</h4><pre>git clone https://YOUR_TOKEN@github.com/username/repo.git<br></pre><h4>Cloning with Fine-Grained Token</h4><pre>git clone https://username:${YOUR_TOKEN}@github.com/username/repo.git<br></pre><h3>Conclusion</h3><p>Collaborating with Git and GitHub is a fundamental skill for any developer. By following this step-by-step guide and practicing the commands, you&#39;ll become proficient in working with others on Git repositories and GitHub projects. Embrace the power of collaboration and take your software development skills to new heights!</p><p>Happy coding and collaborating!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afe307b4b655" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A generator function in Python is a special type of function that returns an iterator.]]></title>
            <link>https://medium.com/@elemenx93/a-generator-function-in-python-is-a-special-type-of-function-that-returns-an-iterator-9e35de98d344?source=rss-75d559d9d3f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e35de98d344</guid>
            <category><![CDATA[functions-in-python]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Muhammed Yuguda]]></dc:creator>
            <pubDate>Mon, 03 Jul 2023 12:21:24 GMT</pubDate>
            <atom:updated>2023-07-03T12:21:24.559Z</atom:updated>
            <content:encoded><![CDATA[<p>A generator function in Python is a special type of function that returns an iterator. It allows you to define a function that behaves like an iterator, producing a sequence of values on-the-fly instead of computing and returning them all at once. This can be useful when dealing with large amounts of data or when you want to generate values lazily, only when they are needed.</p><p>To define a generator function, you use the `yield` keyword instead of the `return` keyword. The `yield` statement suspends the function&#39;s execution and sends a value back to the caller, but unlike `return`, it doesn&#39;t terminate the function. Instead, the function&#39;s state is saved, and it can be resumed from where it left off the next time it is called.</p><p>Here’s an example of a simple generator function that generates a sequence of numbers. For example:</p><pre>def number_generator():<br>    i = 0<br>    while True:<br>        yield i<br>        i += 1<br></pre><p>In this example, the function `number_generator` defines an infinite loop that generates an infinite sequence of numbers starting from 0. The `yield i` statement sends the current value of `i` back to the caller, and the function&#39;s state is saved. When the function is called again, it resumes execution right after the `yield` statement, incrementing `i` and sending the next value. This process continues indefinitely, generating an infinite sequence of numbers.</p><p>To use a generator function, you can assign it to a variable and then iterate over it using a `for` loop or by calling the `next()` function. For example:</p><pre>numbers = number_generator()<br>for _ in range(5):<br>    print(next(numbers))<br></pre><p>Output:</p><pre>0<br>1<br>2<br>3<br>4<br></pre><p>In this example, we create an instance of the generator function `number_generator()` and assign it to the variable `numbers`. We then use a `for` loop to iterate over the generator and print the first five numbers. The `next()` function is used to retrieve the next value from the generator.</p><p>One of the benefits of using generator functions is that they can save memory by producing values on-demand rather than generating the entire sequence upfront. They are particularly useful when dealing with large data sets or when you don&#39;t need all the values at once.</p><p>It&#39;s worth noting that a generator function can also include `return` statements. However, using `return` will terminate the function and raise a `StopIteration` exception, which is a signal to the caller that the generator has reached its end.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e35de98d344" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>