<?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 toni thinker on Medium]]></title>
        <description><![CDATA[Stories by toni thinker on Medium]]></description>
        <link>https://medium.com/@zakalive?source=rss-7f9f41e3ef22------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DkOXC39uclRB4IXPEBTnog.jpeg</url>
            <title>Stories by toni thinker on Medium</title>
            <link>https://medium.com/@zakalive?source=rss-7f9f41e3ef22------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 20:45:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zakalive/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[Keywords & Functions in Python]]></title>
            <link>https://zakalive.medium.com/keywords-functions-in-python-714bf4a0c503?source=rss-7f9f41e3ef22------2</link>
            <guid isPermaLink="false">https://medium.com/p/714bf4a0c503</guid>
            <category><![CDATA[univelcity]]></category>
            <category><![CDATA[bootcamp]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[toni thinker]]></dc:creator>
            <pubDate>Mon, 03 May 2021 14:30:15 GMT</pubDate>
            <atom:updated>2021-05-03T14:30:15.165Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="The Zen of Python, the philosophy to python programming." src="https://cdn-images-1.medium.com/max/334/1*2z55fZMgeHLJg7hr8TBZGQ@2x.jpeg" /><figcaption>The Zen of Python.</figcaption></figure><p>So it’s week two of my journey and i was introduced to <strong>keywords</strong> and <strong>functions</strong> in python, and with that being said here’s a brief warning as we proceed…</p><p><strong>DISCLAIMER</strong> : This read is going to be a bit more technical and more on the educational side than my last piece so let’s grab our learning hats, shall we?! *smiley face* I promise to keep it simple and use easy to understand words ;).</p><p>Keywords are the reserved words in Python. In python, they are case sensitive. We cannot use a keyword as a variable name, function name or any other identifier. They are used to define the syntax and structure of the Python language.</p><p>There are about 33 keywords in python 3.7, and i’ll be going through a handful of them below.</p><ul><li><strong>as</strong></li><li><strong>return</strong></li><li><strong>finally</strong></li><li><strong>lambda</strong></li></ul><p>The “<strong>as</strong>” clause in python is used to create an alias. That is, <strong>import</strong> <em>datetime</em> as <strong>A</strong>, now we can refer to <em>datetime</em> using <strong>A</strong> as the identifer instead. The “<strong>as</strong>”<strong> </strong>clause is used in the following contexts:</p><ul><li>Accompanied by the <strong>with</strong> statement to name the resource being allocated</li><li>In the <em>from</em>…<em>import</em> statement and the <em>import</em> statement as a means to bind the module to a name</li><li>In the except statement to associate a name to the exception being passed.</li></ul><p>The <strong>return</strong> is used to end the execution of the function and return the result (value of the expression following the return keyword) to the caller. Expressed in this format | <strong>return</strong> [expression]|</p><p><strong>finally</strong> is used with exceptions, a block of codes that will be excuted no matter if there is an exception or not. This is useful to close objects and clean up resources.</p><p><strong>lambda </strong>is used to create a small anonymous function, can take up any number of arguments but can only have one expression.</p><p>side note: an argument is the value that are sent to the function when it is called, and not the typical “give reasons or cite evidence in support of an idea, action, or theory, typically with the aim of persuading others to share one’s view.” Right, here’s an expression of this keyword.</p><blockquote>|lambda argument : expression|</blockquote><blockquote>|A = lambda B: B+10|</blockquote><blockquote>|Print(A(8))|</blockquote><blockquote>this will result in 18 printed to IDLE.</blockquote><p>and that’s that on keywords, now let’s jump into functions and see how some work.</p><p>A <strong>function</strong> is a block of code which only runs when it is called. You can pass data, known as parameters, into a function. And i’ll be going through five (5) unique functions: oct(), ord(), repr(), str() and type().</p><p>So straight to it then, <strong>oct() </strong>function converts an integer into an octal string. Octal strings in Python are prefixed with 0o.</p><blockquote><em>oct (int)</em></blockquote><blockquote>x = oct(200)</blockquote><blockquote>print (x)</blockquote><blockquote>which results in 0o310</blockquote><p>The <strong>ord() </strong>function in Python accepts a string of length 1 as an argument and returns the unicode code point representation of the passed argument.</p><p>sidenote: Unicode is a computing standard for the consistent encoding symbols.</p><blockquote>print(ord(‘5’)) # 53<br>print(ord(‘A’)) # 65 <br>print(ord(‘$’)) # 36</blockquote><p>By the way, the <strong>ord()</strong> function is the inverse of the Python chr() function.</p><p>In Python, <strong>rep()</strong> function returns a printable representation of the given object. __repr__ is a <em>special method</em> used to represent a class’s objects as a string. __repr__ is called by the <strong>repr()</strong> built-in function. You can define your own string representation of your class objects using the __repr__ method.</p><p>The <strong>str()</strong> function of Python returns the string version of the object. str() and repr() both are used to get a string representation of object.</p><p><strong>type()</strong> method returns class type of the argument(object) passed as parameter. type() function is mostly used for debugging purposes.</p><p>Two different types of arguments can be passed to type() function, single and three argument. If single argument type(obj) is passed, it returns the type of given object. If three arguments type(names, bases, dict) is passed, it returns a new type object.</p><blockquote><strong>Syntax :</strong></blockquote><blockquote>type(object)</blockquote><blockquote>type(names, bases, dict)</blockquote><p>And this is where we bring today’s read to an end. There’s a lot to cover on this topic and i dare say not enough time to further dive in but as required by my instructor, i hope this was an insightful read and we learnt something new today. So until next time, keep learning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=714bf4a0c503" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week #1 — Python: My Journey]]></title>
            <link>https://zakalive.medium.com/week-1-of-my-tech-journey-265a8faf29f5?source=rss-7f9f41e3ef22------2</link>
            <guid isPermaLink="false">https://medium.com/p/265a8faf29f5</guid>
            <category><![CDATA[codingbootcamp]]></category>
            <dc:creator><![CDATA[toni thinker]]></dc:creator>
            <pubDate>Sun, 25 Apr 2021 18:57:39 GMT</pubDate>
            <atom:updated>2021-05-03T11:42:56.220Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you familiar with those 90&#39;s Compaq Desktop computers, do you remember what computers looked like back in the year 2000? Well, i first encountered one of those when i was six years old and in that moment, i knew that “box-looking” thing would change the world for better, and i wanted to be a part of it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*dgNOSCLWNSeF-MrJ4YRE9A.jpeg" /><figcaption>a throwback photo of what computers looked like in the 2000&#39;s.</figcaption></figure><h3>Fast forward 20 years to present day!</h3><p>It’s post-pandemic and the world is a complete different one from back then, and technology has been behind this massive change. In the year 2021 were electric-cars have become a norm in significant parts of the world (thank you Elon Musk), self driving cars have become a thing and it just so turns out <strong>python</strong> programming language is behind this technology.</p><p>Heads up: if you know a little bit of python, you can build your own virtual self-driving car with just 60 lines of code.</p><p>So knowing this and more, when i got the opportunity to learn Data Science at <a href="https://medium.com/u/459abe99c013">Univelcity</a> — an institution who make it their business in helping young Nigerians build a career in tech, i knew it was just the environment for a tech nomads like myself.</p><p>It was like every first day of school resumption, everyone trying to set the tempo right for next twelve weeks and at the institute halls it was no different.</p><figure><img alt="Learning GIT for the first time is a bit of a handful but I feel i’m in good hands." src="https://cdn-images-1.medium.com/max/1024/1*rdrHJ0DQEs4CU-oRHfwJlg.jpeg" /><figcaption>Inyang Atha and toni attah.</figcaption></figure><p>After being addressed by the Vice Chancellor Mr Jo, it was straight to business in classroom with my instructor Inyang Atha, who layed the roadmap for our python journey. Immediately after that, it was down to installation of the various tools and applications needed. Essentials like; VSCode, Git, excel, etc, and then it was on to Github — an amazing platform that allows people solve problems by building software together. With the help of my instructor, we’re all able to understand the importance of open source and why collaboration is at the heart of innovation.</p><p>Using git commands like;</p><ul><li>$git commit -m “xxx” — which is for easy reference and records the changes made to the file to a local repository,</li><li>$git checkout &lt;branch name&gt; — which is used to switch between branches.</li></ul><p>it was very confusing at first but before the end of the day after detailed conversation amongst every meme we of the class, most of us were able to grasp git and all it’s tricky ways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*INfD82aPUKM6cMD0qegrhg@2x.jpeg" /><figcaption>a NYT Tower.</figcaption></figure><p>This is a story about the future and looking back at how far i’ve come, the future looks bright for mankind and i hope you follow me on this journey.</p><p>I’ll write to you next week but until then, keep learning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=265a8faf29f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>