<?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: Mahidhar Kakumani</title>
    <description>The latest articles on DEV Community by Mahidhar Kakumani (@ursmahi).</description>
    <link>https://dev.to/ursmahi</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%2F406010%2F9afb3dbe-2836-4d95-9c83-efd9a395a5a9.png</url>
      <title>DEV Community: Mahidhar Kakumani</title>
      <link>https://dev.to/ursmahi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ursmahi"/>
    <language>en</language>
    <item>
      <title>Sorts one list based on another list containing the desired indexes.
</title>
      <dc:creator>Mahidhar Kakumani</dc:creator>
      <pubDate>Sat, 12 Sep 2020 01:58:54 +0000</pubDate>
      <link>https://dev.to/ursmahi/sorts-one-list-based-on-another-list-containing-the-desired-indexes-2kf6</link>
      <guid>https://dev.to/ursmahi/sorts-one-list-based-on-another-list-containing-the-desired-indexes-2kf6</guid>
      <description>&lt;p&gt;Use zip() and sorted() to combine and sort the two lists, based on the values of indexes. Use a list comprehension to get the first element of each pair from the result.&lt;/p&gt;

&lt;p&gt;Code:&lt;/p&gt;

&lt;p&gt;def sort_by_indexes(lst, indexes):&lt;br&gt;
  return [val for _, val in sorted(zip(indexes, lst), key = lambda x: x[0])]&lt;/p&gt;

&lt;p&gt;EXAMPLES&lt;/p&gt;

&lt;p&gt;a = ['eggs', 'bread', 'oranges', 'jam', 'apples', 'milk']&lt;br&gt;
b = [3, 2, 6, 4, 1, 5]&lt;br&gt;
sort_by_indexes(a, b) # ['apples', 'bread', 'eggs', 'jam', 'milk', 'oranges']&lt;/p&gt;

&lt;p&gt;Share and Support  t.me/python_codes&lt;/p&gt;

</description>
      <category>python</category>
      <category>javascript</category>
      <category>java</category>
      <category>kotlin</category>
    </item>
    <item>
      <title>Lambda functions in Python:</title>
      <dc:creator>Mahidhar Kakumani</dc:creator>
      <pubDate>Tue, 18 Aug 2020 16:52:53 +0000</pubDate>
      <link>https://dev.to/ursmahi/lambda-functions-in-python-4l24</link>
      <guid>https://dev.to/ursmahi/lambda-functions-in-python-4l24</guid>
      <description>&lt;p&gt;In Python, an anonymous function is a function that is defined without a name.&lt;/p&gt;

&lt;p&gt;While normal functions are defined using the def keyword in Python, anonymous functions are defined using the lambda keyword.&lt;/p&gt;

&lt;p&gt;Hence, anonymous functions are also called lambda functions.&lt;/p&gt;

&lt;p&gt;Syntax of Lambda Function in python:&lt;/p&gt;

&lt;p&gt;lambda arguments: expression&lt;/p&gt;

&lt;p&gt;Lambda functions can have any number of arguments but only one expression. The expression is evaluated and returned. Lambda functions can be used wherever function objects are required.&lt;/p&gt;

&lt;p&gt;EX:  &lt;/p&gt;

&lt;p&gt;double = lambda x: x * 2&lt;/p&gt;

&lt;p&gt;double(4)&lt;br&gt;&lt;br&gt;
output: —&amp;gt; 8&lt;/p&gt;

&lt;p&gt;Best Examples of Lambda Functions:&lt;/p&gt;

&lt;p&gt;Factorial of a Number:&lt;/p&gt;

&lt;p&gt;fact=lambda n:1 if n&amp;lt;=1 else n*fact(n-1)&lt;br&gt;
fact(5)&lt;/p&gt;

&lt;p&gt;n th fibonacci Number:&lt;/p&gt;

&lt;p&gt;fib=lambda n:n if n&amp;lt;=1 else fib(n-1)+fib(n-2)&lt;br&gt;
fib(8)&lt;/p&gt;

</description>
      <category>python</category>
      <category>lambda</category>
      <category>machinelearning</category>
      <category>coding</category>
    </item>
    <item>
      <title>Lists in Python</title>
      <dc:creator>Mahidhar Kakumani</dc:creator>
      <pubDate>Tue, 11 Aug 2020 12:41:06 +0000</pubDate>
      <link>https://dev.to/ursmahi/lists-in-python-3am4</link>
      <guid>https://dev.to/ursmahi/lists-in-python-3am4</guid>
      <description>&lt;p&gt;Lists&lt;/p&gt;

&lt;p&gt;list.append(x)&lt;br&gt;
Add an item to the end of the list. Equivalent to a[len(a):] = [x].&lt;/p&gt;

&lt;p&gt;list.extend(iterable)&lt;br&gt;
Extend the list by appending all the items from the iterable. Equivalent to a[len(a):] = iterable.&lt;/p&gt;

&lt;p&gt;list.insert(i, x)&lt;br&gt;
Insert an item at a given position. The first argument is the index of the element before which to insert, so a.insert(0, x) inserts at the front of the list, and a.insert(len(a), x) is equivalent to a.append(x).&lt;/p&gt;

&lt;p&gt;list.remove(x)&lt;br&gt;
Remove the first item from the list whose value is equal to x. It raises a ValueError if there is no such item.&lt;/p&gt;

&lt;p&gt;list.pop([i])&lt;br&gt;
Remove the item at the given position in the list, and return it. If no index is specified, a.pop() removes and returns the last item in the list. (The square brackets around the i in the method signature denote that the parameter is optional, not that you should type square brackets at that position. You will see this notation frequently in the Python Library Reference.)&lt;/p&gt;

&lt;p&gt;list.clear()&lt;br&gt;
Remove all items from the list. Equivalent to del a[:].&lt;/p&gt;

&lt;p&gt;list.index(x[, start[, end]])&lt;br&gt;
Return zero-based index in the list of the first item whose value is equal to x. Raises a ValueError if there is no such item.&lt;/p&gt;

&lt;p&gt;The optional arguments start and end are interpreted as in the slice notation and are used to limit the search to a particular subsequence of the list. The returned index is computed relative to the beginning of the full sequence rather than the start argument.&lt;/p&gt;

&lt;p&gt;list.count(x)&lt;br&gt;
Return the number of times x appears in the list.&lt;/p&gt;

&lt;p&gt;list.sort(key=None, reverse=False)&lt;br&gt;
Sort the items of the list in place (the arguments can be used for sort customization, see sorted() for their explanation).&lt;/p&gt;

&lt;p&gt;list.reverse()&lt;br&gt;
Reverse the elements of the list in place.&lt;/p&gt;

&lt;p&gt;list.copy()&lt;br&gt;
Return a shallow copy of the list. Equivalent to a[:]&lt;/p&gt;

&lt;p&gt;Share and Support t.me/python_codes&lt;/p&gt;

</description>
      <category>python</category>
      <category>datascience</category>
      <category>machinelearning</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How to read Bloomberg Articles for Free ? Boombergquint for Free?</title>
      <dc:creator>Mahidhar Kakumani</dc:creator>
      <pubDate>Sun, 09 Aug 2020 07:20:10 +0000</pubDate>
      <link>https://dev.to/ursmahi/how-to-read-bloomberg-articles-for-free-3d9g</link>
      <guid>https://dev.to/ursmahi/how-to-read-bloomberg-articles-for-free-3d9g</guid>
      <description>&lt;p&gt;Bloomberg is a Website where you can read best articles from the top journalists in the world.&lt;br&gt;
Now I will show you how to Read Bloomberg articles for free which is a simple trick any one can do with in couple of seconds. Like Bloomberg you can read many paid articles like  The Economist, Wall Street Journal, Bloomberg, Financial Times (FT Articles) and many  using the trick from this video.&lt;br&gt;
Read Bloomberg articles for free can save you $340 per year which is not a small amount.&lt;/p&gt;

&lt;p&gt;Since you read them free of cost it is almost like you get a free subscription to all these news websites.&lt;/p&gt;

&lt;p&gt;I am providing youtube link so you can watch &lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=QWLmuzqkvhg"&gt;https://www.youtube.com/watch?v=QWLmuzqkvhg&lt;/a&gt;&lt;/p&gt;

</description>
      <category>bloomberg</category>
      <category>tricks</category>
      <category>outline</category>
      <category>article</category>
    </item>
    <item>
      <title>How to read Medium articles for free?</title>
      <dc:creator>Mahidhar Kakumani</dc:creator>
      <pubDate>Sat, 13 Jun 2020 09:15:01 +0000</pubDate>
      <link>https://dev.to/ursmahi/how-to-read-medium-articles-for-free-5a87</link>
      <guid>https://dev.to/ursmahi/how-to-read-medium-articles-for-free-5a87</guid>
      <description>&lt;p&gt;You all know Medium right where you can publish articles and read articles from various authors. We can say that Medium platform is like a Social Journalism. Many authors are earning from Medium based on time spent on the article by the user. Medium encourages to create the larger articles which is know for the content.&lt;/p&gt;

&lt;p&gt;Many people want medium for free there is one trick to get the medium for free life time I think if it works forever.&lt;/p&gt;

&lt;p&gt;I will give you a YouTube video link so that you can access for free.&lt;/p&gt;

&lt;p&gt;Youtubelin: &lt;a href="https://www.youtube.com/watch?v=LrdfscqIGfI"&gt;https://www.youtube.com/watch?v=LrdfscqIGfI&lt;/a&gt;&lt;/p&gt;

</description>
      <category>medium</category>
      <category>articles</category>
      <category>premium</category>
      <category>paid</category>
    </item>
  </channel>
</rss>
