<?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 Ayodabo oluwatomisin on Medium]]></title>
        <description><![CDATA[Stories by Ayodabo oluwatomisin on Medium]]></description>
        <link>https://medium.com/@ayodabooluwatomisin?source=rss-f5d85e54015d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-K30ed4xaLv1i6E-</url>
            <title>Stories by Ayodabo oluwatomisin on Medium</title>
            <link>https://medium.com/@ayodabooluwatomisin?source=rss-f5d85e54015d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 09:08:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ayodabooluwatomisin/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[2022 YEAR-IN-REVIEW: A MEMORABLE YEAR]]></title>
            <link>https://ayodabooluwatomisin.medium.com/2022-year-in-review-a-memorable-year-b60d87f58851?source=rss-f5d85e54015d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b60d87f58851</guid>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Ayodabo oluwatomisin]]></dc:creator>
            <pubDate>Sat, 31 Dec 2022 01:35:20 GMT</pubDate>
            <atom:updated>2022-12-31T01:35:20.988Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*ZxyYHq67AzziBV9o5XSI3w.jpeg" /><figcaption>End of a chapter, the beginning of another</figcaption></figure><h3>A RECAP</h3><p>This year has been a fantastic year for me. I never expected this growth in my career and life; from struggling to earn a decent living to paying my first rent, my life went from zero to a hundred in just a year.</p><p>I thank Almighty Allah for his endless mercy and blessings on my life, my parents for their never-ending support, my brother (benefactor) whom I owe everything I am, and my friends and loved ones. It hasn’t been easy, but here we are; as DJ Khalid said, “God did”.</p><blockquote><strong>It does not matter how slowly you go as long as you do not stop</strong>.</blockquote><p>I have been opportune to be a part of many great stories and events that have helped shaped me and mould me into what I am today. I had a lot of ups and downs. I made money, lost money, and all in all; I found love. This is how my year went with little “tongue-in-cheek” stories.</p><h4>Beginning of year</h4><p>This year started on a high for me. I got my current role in February after a series of “sorry, we will not be moving forward with your……” (lol). The job came at a time when I had given up and accepted my fate of not always getting to the end of the interview process. This particular one was different for me, as I practically “jumped” to the last process right from the start. I got that. Great start to the year!</p><p>Then came the news of the strike. This allowed me to focus on my new role and give my all to helping the organisation grow. I had some ups and downs during the few months in the role, but I forged ahead and never gave up. Also, I pushed harder to learn new technologies related to my position and expanded my knowledge pool by delving into a new, unfamiliar field. It was an exciting project, as I had to rewrite a code written in one language into another. This made me learn about code design and architecture, a compelling topic I recommend to everybody, regardless of their role in tech. A code worth writing is written well. Document and test your code, peeps; you won’t be the only one to see it.</p><h4>Middle of Year: Forgettable period</h4><p>I nearly lost my job and also had an issue that almost made me consider leaving. But thanks to my former team lead (Olamide) and teammate (Paul), I could keep on and keep learning and improving. I can’t go into the details, but I cried over the issue.</p><h4>Q3-Q4: Overdrive mode</h4><p>This period especially for me, was where most things happened for me. I got a lot of gigs that amounted to 6 figures (gunning for seven next year) in earnings for me, beating my Q1-Q2 earnings by over 100%. During this period, I also found the love of my life, and my life changed for the better. I can go on and on about it, but it will become boring. Yes, you guessed it. This period has been the best part of the year for me.</p><p>In terms of work, not so much due to some complications. School also resumed during this period, which put me in a very precarious situation. Balancing school and work haven’t come easy, coupled with gigs, but Alhamdullilah, I haven’t stopped, nor am I stopping. This is the list of my memorable events and achievements this year.</p><ul><li>Got a job</li><li>Got me a phone with my money (which was important cos I never did that before)</li><li>Fell extremely sick</li><li>Got a Macbook Pro</li><li>Found love amidst the crazy pool out there.</li><li>Paid for and furnished an apartment all with my own money.</li><li>Made new friends and connections.</li><li>Made and spent a lot of money (I did not believe I could)</li></ul><p>Thank you for reading my year-in-review. I appreciate your patience and love. Cheers to another amazing year ahead for all of us</p><blockquote>P.S: Be kind, help someone out, and do not wait till another time</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b60d87f58851" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Object Oriented Programming in Python Series]]></title>
            <link>https://ayodabooluwatomisin.medium.com/object-oriented-programming-in-python-series-a31256768bfd?source=rss-f5d85e54015d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a31256768bfd</guid>
            <category><![CDATA[class-method]]></category>
            <category><![CDATA[oop]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[static-methods]]></category>
            <category><![CDATA[instance-method]]></category>
            <dc:creator><![CDATA[Ayodabo oluwatomisin]]></dc:creator>
            <pubDate>Wed, 23 Jun 2021 19:28:32 GMT</pubDate>
            <atom:updated>2021-06-23T19:28:32.067Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>PART II</strong></p><p>Hi there!, welcome to the part two of my object oriented programming in python series. in the previous <a href="https://medium.com/star-gazers/object-oriented-programming-in-python-series-94d80cdd805f?source=friends_link&amp;sk=b24282f0941e1ab407825b60739f0c18">article</a>, I talked about classes and how to create and instantiate them in python. Also, I differentiated between public and private attributes and also discussed instance and class attributes.</p><p>In this article, we will talk about methods and how to create them. we will also talk about the different methods we have and how to create them using <em>“decorators”</em>, which are python functions for wrapping other functions and methods. So, let’s dive in, shall we?</p><p>Methods in python are also functions, but are bound to the scope of classes. What I’m saying, is that methods are simply functions that resides in classes. These functions are otherwise known as the “behaviors” of classes that define them. They are the actions that those classes perform. enough talk, let’s dive into how to create them and use them.</p><p>We will build a class car and give it attributes name, price and gear. This will be a simple class as I want us to only get how methods work, later on in this series, we will build more complex classes and even talk about enums(enumerations).</p><p><strong>Instance Methods</strong></p><p>These methods are functions that are unique to each instance. i.e, these methods on creation of concrete objects are bound to those objects and do not interfere with other methods of other objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*zN6FH4LV9ux9LnxaswZHAg.png" /><figcaption>instance method</figcaption></figure><p>From the above image. you will notice that each student has its own getAverage() method which calculates the average for each student. getAverage() in this instance is an instance method which is bound to each concrete student object. Let’s see below example of instance method for our Car class</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NYfM2_qTqHG86yhmw2KDZg.png" /><figcaption>Fig 1</figcaption></figure><p>Our Car class defines two methods, move() and reverse(). In the definitions, notice there is an argument <em>“self”</em>, this<em> self </em>argument refers to an instance of the Car class, thus allowing the methods to modify the gear attribute. When these methods are invoked or called, the lines of code inside the body of those functions are executed and the gear attributes is changed according to the method called. Let’s instantiate our class and perform few actions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*dp0v6kbsFJeJkU_qf3lsQg.png" /><figcaption>FIG 2</figcaption></figure><p>Our Car object performs just two actions, move and reverse. You can modify it on your end to park and do other things.</p><p>There’s one thing to note here. When we defined the methods, we gave them a parameter <em>self</em>, but when calling, we did not pass any parameter, why? because <em>self</em> refers to the<em> car</em> object we created which is an instance of the <em>Car</em> class we defined.</p><p><strong>Class Methods</strong></p><p>unlike the methods we discussed earlier, class methods are also actions performed by classes, BUT, these actions are bound to the class itself. This means these methods are linked to the class definition and when the class is instantiated, these methods are shared by all instances of that class.</p><p>To define these methods, the <em>“@classmethod” </em>decorator is called on the method we which to define as a class method. One difference is that it takes in <em>cls</em> as parameter instead of <em>self</em>. <em>cls</em> refers to the class as we can’t use the <em>class</em> keyword again. This methods also allows the modification of instance and class variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Zii9Rak92h23PDqRWQZ-A.png" /><figcaption>FIG 3</figcaption></figure><p>What happens when we call this method? This method can be called directly on the Car class or on an instance object, and it will create and return a new Car object which can be instantiated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4W50Lqfajy-2oYaUG6WYMw.png" /><figcaption>FIG 4</figcaption></figure><p>class methods are useful when we are building parsers as they allow us create new parsers with custom definitions.</p><p><strong>Static Methods</strong></p><p>This is the last one among the different methods available in python. This method works like an ordinary pure function. it does not access the instance variables of the class it is defined in and can only use variables passed as arguments.</p><p>These methods do not interfere with the class and they form something like a symbiotic relationship where the class provides shelter for them and in turn they serve as utility functions for the class.</p><p>They are created using the “@statismethod” decorator on the preferred method and do not take in either self or cls as arguments, rather normal arguments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NnaU2ty-Tk_ve3I2lkO4tg.png" /><figcaption>FIG 5</figcaption></figure><p>calling the check_gear method with an argument “gear” will return a boolean telling whether the passed gear is part of valid gears for the car.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I3MMyO04NcrDZBT_VTUuqQ.png" /><figcaption>FIG 6</figcaption></figure><p>the constructor will raise an error if the gear passed is not valid and it will create an instance variable gear otherwise.</p><h4><strong>CONCLUSION</strong></h4><p>We have talked about the various methods available for use when building our classes, and also how each method works.</p><p>Instance methods are bound to instances while class methods are bound to classes and the last one is merely a resident inside the class scope</p><p>Below gives a comparison between each method</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*YVMcz0x74Bp7tVP7DxtalA.png" /><figcaption>different methods and their properties</figcaption></figure><p>You can play around with these methods to further solidify your knowledge.</p><p>Thank you for reading, and in the next part, we will talk about properties and how they work. Thank you! and leave a comment</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a31256768bfd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Object Oriented Programming in Python Series]]></title>
            <link>https://medium.com/star-gazers/object-oriented-programming-in-python-series-94d80cdd805f?source=rss-f5d85e54015d------2</link>
            <guid isPermaLink="false">https://medium.com/p/94d80cdd805f</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[object-oriented]]></category>
            <category><![CDATA[oop]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ayodabo oluwatomisin]]></dc:creator>
            <pubDate>Thu, 29 Apr 2021 06:55:01 GMT</pubDate>
            <atom:updated>2021-04-30T11:54:35.960Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Part I</strong></h3><p>What comes to your mind when you hear Object Oriented Programming? Objects right? well yes, OOP(Object Oriented Programming) is all about organization of code into objects that have separate attributes and actions or methods they perform. Basically, we can say the world is OO, everything centers on objects like humans, animals, and other objects relating, each having their own separate attributes.</p><p>OOP in Python is essentially the creation, organization of python code into different objects that interact with each other. OOP in Python provides a rich ecosystem of developing programs that are modular, scalable and easy to develop, as it is easy to relate with the real world and pick inspiration from there.</p><h3>What does this part focus on?</h3><p>This is the first part of up to five series centering on the creation of classes, which are blueprints for creating concrete objects, development of methods, inheritance, composition, polymorphism, encapsulation. This part focus on creation and instantiation of classes, definition of attributes and what are private and public attributes. we will end this series with introduction to methods, please stay tuned.</p><h4>How does OOP work in Python?</h4><p>Python primarily is an object oriented language but provides opportunities for other programming paradigms like Functional programming. you can read about Functional Programming with Python <a href="https://ayodabooluwatomisin.medium.com/functions-and-functional-programming-in-python-d7e1a53dda95">here</a>.</p><p>It is believed and tested that everything in Python is an object including functions. what does this mean? it means python treat everything in your source code as first-class object like the basic data types like int, float, str and data structures like set, list and dict. This means they can be assigned to variables, passed as arguments to functions or other functions, as element of a data structures and so on. This property of Python has made it easy to write and document but fairly hard to debug as changing a function body may affect another function if it is passed as an argument.</p><p>To define classes in python, you make use of the <strong>class</strong> keyword followed by the name of the class you want. what does this do? the <strong>class </strong>keyword defines a template that binds objects to the name of the class. For an example, look at the image below, which defines a class <strong>A</strong>.</p><figure><img alt="class definition" src="https://cdn-images-1.medium.com/max/436/1*yx5ecPmOqU2CRUd5N_Sfnw.png" /><figcaption>FIG 1</figcaption></figure><p>The above class creates a blueprint or template for defining objects of <strong>type A</strong>. no concrete object has being created yet, to do that, we <strong>instantiate </strong>an object of type A by passing A as a value to a variable of our choice, how does it look in practical?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*axIsF9DDzy9z8OirBZuhdQ.png" /><figcaption>FIG 2</figcaption></figure><p><strong>foo </strong>is an object bound to class <strong>A</strong> and gets all the attributes and methods that comes with <strong>A</strong>.</p><h4><strong>Attributes in classes</strong></h4><p>Attributes can be said to be properties or fields of a class. Attributes are the ones that hold information about a class and the type of values it possess. To create attributes in Python classes, we need to define a <strong>helper method </strong>called the constructor or dunder(double underscore) init method. The constructor serves as a gateway to access the properties of a class. the __init__ method bounds attributes created to the class and makes them available for use in our class. an example is shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O0giwOOYR14zzOzIK_OFlA.png" /><figcaption>FIG 3</figcaption></figure><p>notice the first argument, <strong>self. what does self do and what is self? self</strong> in python is a keyword use to refer to an instance of a class. if you have written Java or Javascript, you must have heard of <strong>this</strong>, they both practically serve the same purpose as they are identifiers that binds an instance of a class to its attributes. When defining methods, instance methods(we will get there later), <strong>self</strong> is always the first argument as it allows that method to access the attributes or instance attributes of the parent class.</p><h4><strong>Types of attributes</strong></h4><p>There are two major types of attributes in Python, which are <strong>class</strong> attributes and <strong>instance</strong> attributes. A <strong>class</strong> attribute is a property that is shared by all instances of a class. An example of this can be seen when developing a class gradebook, each gradebook as a maximum number of student it can take, the maximum number in this case represents a class attribute that is shared by all instances of a gradebook.</p><p><strong>instance </strong>attributes on the other hand are attributes bound to <strong>specific</strong> instances of a class. Each instance has its own attributes that are unique to it and may share a <strong>class</strong> attribute with other instances. an example of an instance attribute is the one defined in <strong>FIG 3</strong>, while a <strong>class</strong> attribute looks like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5YYIJ-xtN4jzDuACfur0UA.png" /><figcaption>FIG 4</figcaption></figure><p><strong>MAX_AGE</strong> in this case represents a value every person shares.</p><p><strong>class </strong>attributes are used to define constants that are shared by all <strong>instances</strong> and when it is mutated in one instance, it will reflect on other instance. i.e you change the MAX_AGE in one instance to be 700, this value will reflect across all instances of person.</p><h4>Public and Private attributes: Are they really private?</h4><p>In languages like Java, C++ and C, they provide tools for defining private attributes and methods. in Python, there is nothing as such so the creator of Python, Guido Van Rossum, developed <a href="https://www.python.org/dev/peps/pep-0008/#method-names-and-instance-variables">PEP8</a> to address the creation of private variables to avoid name clashes and unnecessary access to instance attributes designated as private. Use two leading underscores to define a private variable so it won’t be accessible by the user.</p><h3>SUMMARY</h3><p>In essence, we know what OOP means as a paradigm, how it is implemented in Python and the uses. OOP is the most popular paradigm in use today among programmers as it lets you group your code into classes that interact and share information between themselves without explicitly changing the attributes.</p><p>Instance variables are mainly the focus of OO design in python as they hold all the necessary information to interact with other objects and enable operations based on their data types.</p><p>In the next series, I will talk about methods and the forms of methods we have and also talk about decorators and decorating methods for easy and protected access to instance variables.</p><p>Thank you for reading and see you in the next part!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94d80cdd805f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/star-gazers/object-oriented-programming-in-python-series-94d80cdd805f">Object Oriented Programming in Python Series</a> was originally published in <a href="https://medium.com/star-gazers">Star Gazers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Functions and Functional Programming in Python]]></title>
            <link>https://ayodabooluwatomisin.medium.com/functions-and-functional-programming-in-python-d7e1a53dda95?source=rss-f5d85e54015d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7e1a53dda95</guid>
            <category><![CDATA[lamda]]></category>
            <category><![CDATA[function]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[functional-programming]]></category>
            <dc:creator><![CDATA[Ayodabo oluwatomisin]]></dc:creator>
            <pubDate>Wed, 28 Oct 2020 13:41:09 GMT</pubDate>
            <atom:updated>2020-10-28T13:41:09.891Z</atom:updated>
            <content:encoded><![CDATA[<p>As a programmer, you must have heard of or used functions at some points in your programming journey. There is no demeaning the fact that functions are part of the essentials when organizing and building our codes.</p><p>Functional Programming has been around since a long time ago, but its usage over the years has been a concern as maintenance and scaling becomes increasingly difficult.</p><p><strong>What are functions?</strong></p><p>A function is a set of instructions that accepts inputs and produces output in finite time(university definition haha). A function must have an input, must execute at constant time per line, must have an output, must be finite, it can’t run forever.</p><p>Functions serve as great way to isolate code and prevent interactions between global variables. You must wonder, what is a global variable? these are variables that reside at the top level scope of our python script.</p><h3><strong>Functions in Python</strong></h3><p>Python provides many ways of implementing functions and using them. Also, there are numerous functions that have been implemented for which a programmer can use without fear.</p><p>In Python, there are two types of functions, <em>in-built functions</em> and <em>custom functions. </em>The former has been implemented already and they come with the interpreter, while the latter is created by the programmer.</p><p>Furthermore, there is another two types of functions, pure and impure functions with the inclusion of higher order functions. Pure functions are the ones that have nothing to do with the outside scope as they take in inputs, manipulate them and gives out output. Pure functions takes no outside variable and produces no side effects, the first example is a type of pure functions.</p><p>Impure funtions on the other hands, interact with the outside scope and produces side effects which may cause problems later in our code</p><p>There are numerous in-built functions like the <em>print, map, input, open, filter</em> functions, while custom functions are created with the <em>def</em> keyword.</p><p>The <em>def </em>keyword allows a programmer to initialize a function block, an example below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*yX4wSDxw7YsHuqn9_dLpEw.png" /></figure><p>The above is a simple python function that takes in x as an argument and returns the square of x. This is a simple demonstration of how python functions work.</p><p>Functions in python can take any arbitary number of arguments and also provide keyword arguments which have pre defined value(s).</p><blockquote>def func(arg, key=value): pass</blockquote><p>In the above code snippet, key is an argument that a pre defined value value, while arg is called a <em>positional argument. </em>I will talk more on that later.</p><p>In python, everything is an object, including functions, thus you can pass them as arguments to functions and store them as variables.</p><p>You must have heard of anonymous functions right? well it is possible in python as well. Python provide a way of writing function expressions that can be assigned to a variable and can work like a normal function. We call them <em>Lambda expressions. Lambda expressions</em> are created with the keyword <em>lambda. </em>Let’s use the same example as before but this time, using the lambda expression</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/1*wZphW07lHjYh5JA_chmzxA.png" /><figcaption>lambda function</figcaption></figure><p>The above is just like the first example but it doesn’t have the def keyword. Like I said earlier, you can assign the above expression to a variable and use it like a normal function.</p><p>However, the drawback of this method is that it doesn’t really support readability and it is hard to debug if there are thousands of lines of code.</p><h3><strong>FUNCTIONAL PROGRAMMING IN PYTHON</strong></h3><p>Functional programming is a paradigm where programs are separated into functions that takes in input and gives output to the user. This is a very interesting paradigm as it is simple to implement but sometimes hard to optimize and up-scale.</p><p>Python provides ways of using functional programming to organize our code by providing the implementations of functions that makes it possible. Functions like map, reduce and filter are functional programming tools and we will talk about them shortly.</p><p>Also, there is the concept of recursion, which eliminates the use of loops but can be very dangerous. I will tell you this,<em> “if you have to use recursion, then don’t”.</em> Recursion works in a way where a function calls itself repeatedly until it gets to a base case, where it is terminated. beware as the depth can be exceeded and it runs infinitely(you wouldn’t want that to happen to your PC).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*u2nu8kUTD03OZk83wkOOLg.png" /><figcaption>recursion</figcaption></figure><p>Functional programming enforces the use of functions to implement most functionalities and eliminates the ide of classes.</p><p><strong>Map, Reduce and Filter</strong></p><p>First, we will tackle <strong>map</strong>. map is a function that takes in two arguments, first is a function, second is the iterable(s) and apply the function on the iterable(s) to return another iterable. It is like this, <em>map(func, [iterable, iterable,…])</em>. Iterable is any data structure that a loop can be called on, be it list, set, dictionary or tuple. the result of the map function is a map object that can be converted to an iterable. Below is an example</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*J8iwFLPYqSKLq1Tpecreog.png" /><figcaption>map</figcaption></figure><p>map applies<em> square</em> on every item in that list and store them in a map object which is then converted to a list and assigned to variable <em>values.</em></p><p>Next is <strong>filter</strong>. It is similar in working to map but with a slight difference of the inclusion of condition. Filter creates an iterable from an existing one by applying the function on it and checking for the condition. it returns a filter object that can be converted to an iterable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*W4LeiY47LZXZQL21aVPBYA.png" /><figcaption>filter</figcaption></figure><p>For <strong>reduce</strong>, it is located in the functools module. just like the name, it is used to reduced an iterable to a single value by applying a function and storing it in an accumulator. Also, there is the chance of an initializer where you provide a starting value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*nIL6wtPz6IlMYgJ5t16Dcg.png" /><figcaption>reduce</figcaption></figure><p>Applying the above snippet on an iterable will return a value based on the function provided. <strong>NB: the function must have two arguments for reduce to work</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*cr8Gi7AyrUMxk2vbtrKS7A.png" /></figure><h3><strong>SUMMARY</strong></h3><p>Python is a multi paradigm language where you can implement various programming methods including OOP, Functional Programming, Procedural Programming and others.</p><p>We have been able to discuss what functions are and how they work in python including the different types of functions we have.</p><p>Also, lambda expressions otherwise known as anonymous functions or function expression, their implementation, usage and drawbacks.</p><p>Functional programming, which was our main focus, we’ve been able to define and talk about its usage, advantages and disadvantages.</p><p>Lastly, there is no constraint on the paradigm you are meant to use to build your program, what matters is you understand the method and you can easily scale it up and optimize it when the time comes.</p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7e1a53dda95" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MY LOVE STORY WITH PYTHON]]></title>
            <link>https://ayodabooluwatomisin.medium.com/my-love-story-with-python-2f6b2f4086a8?source=rss-f5d85e54015d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f6b2f4086a8</guid>
            <dc:creator><![CDATA[Ayodabo oluwatomisin]]></dc:creator>
            <pubDate>Thu, 02 Jul 2020 10:43:32 GMT</pubDate>
            <atom:updated>2020-07-02T10:43:32.098Z</atom:updated>
            <content:encoded><![CDATA[<p>MY LOVE STORY WITH PYTHON</p><p>Hi! This is a written documentary about how I started with python and where I currently am.</p><p>Python, to me is like a versatile footballer that can fit into any role comfortably. I have been writing python for 3 years now and I hope to continue writing it for as long as I can. I won&#39;t bore you with too much details or too much praises for python, but I want you to know that learning python has been a great development in my life.</p><p>How did I get to know about python? My friends! Yes, my friends. Then when I was in 100Level, my first day in my department, after exchanging pleasantries, I started hearing them taking about programming and other cool stuffs which I know nothing about. Although I was pretty lost, I tried to stay relevant in the discussion by putting forward my own definition of programming, it was a pretty embarrassing moment there as I gave a secondary school definition! 😂😂😂. Thanks to my loyal friends Tobi and Tunde that took their times to explain to me what it actually mean. After that, I showed interest and I was introduced to Java, a strict no-nonsense language that gave no room for errors. I started learning using a textbook I wish to not meet again 😂. Two weeks into learning I was already tired, no mentor to put me through, afraid to ask for help from my friends, all these things coupled together dimmed my interest in programming as a whole and so, I stopped learning, instead started watching Naruto with full concentration and consistency!. Funny isn&#39;t it? I thought I could just breeze through school as a first class graduate, get a good paying job and live my best life, little did I know that what I actually need to excel is what I had run from in first semester.</p><p>Fast forward to second semester, our lovely CSC103 teacher, Dr. Aderonke Sakpere, started taking us Intro to Programming and it was Python!. This class was my first encounter with python and hearing all the wonders you can do with it. I can still remember vividly how she gives us practical test every end of the week to compliment what we’ve learned. I struggled to understand the concepts and performed bad on many occasion. I also felt inferior seeing my classmates doing very well especially Tobi, Emeka, Betsy, Korede, Fuhad and co. I told my self, &quot;Tomi, you can learn this thing na, you can also do wonders with it&quot;, so I started gaining my lost interest back. Fast forward again for like one month, 30-30 challenge started, boom! The opportunity I was waiting for came at last. Surprisingly, I didn’t join the challenge as I felt they moved at a very fast pace that was getting too hectic for me, so I started learning on my own, doing my own 30 days of python at my own convenient time and place. To cut the long story short sha, that’s how I started learning Python and eventually I fell in love with it and from there on, it’s been happily ever after for me.</p><p>Fortunately, ASUU gave me a head boost by going on a three month strike from November. It was a bittersweet moment for students as exams were approaching but also we needed a break from exvessive classes and humongous class notes!!. Through the help of Yemi, I got a tutorial on python for beginners and it came to be my most precious souvenir going home. I watched that three hours video over 10 times as it got to a stage I could tell what the instructor would say next. With the help of my big brother providing unlimited WIFI, I was able to fast track my learning process and in those three months I could write beautiful python code.</p><p>Moving on, although I could write good python code, that didn&#39;t stop me from scoring 55 in the intro to Programming course. I took it in good faith and moved on, vowing never to score anything less again. Then, the basic learning finished. I was stuck, no next thing to do, moving back and forth between tutorials I had completed, I started getting bored and tired. Fortunately also, I got to hear about Data Science, a field that allowed me to showcase my love for writing and constant talking while also pursuing my passion to learn python. I found the field as a perfect playground for me to do my best while enjoying myself to the fullest. The journey began from there on that day in the bus going from Moniya to UI, today I&#39;m a proud Data Scientist while also pursuing a detour in Backend development.</p><p>Since I&#39;ve started data science last year, I&#39;ve taught other people python programming and also learnt NodeJS and Django.</p><p>This is pretty much all of my story and I hope you enjoy it!!! If you do, please like, leave a comment and share for others too. My parting message &quot;Love what you do, for when you do so, passion sets in&quot;.</p><p>Thank you for reading!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f6b2f4086a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>