<?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: SEAN</title>
    <description>The latest articles on DEV Community by SEAN (@gradius93).</description>
    <link>https://dev.to/gradius93</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%2F415962%2F7297cd64-c9ff-4d43-bd22-31eb342b0ce3.jpeg</url>
      <title>DEV Community: SEAN</title>
      <link>https://dev.to/gradius93</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gradius93"/>
    <language>en</language>
    <item>
      <title>Day 6: Review</title>
      <dc:creator>SEAN</dc:creator>
      <pubDate>Mon, 06 Jul 2020 16:13:07 +0000</pubDate>
      <link>https://dev.to/gradius93/day-6-review-4eeb</link>
      <guid>https://dev.to/gradius93/day-6-review-4eeb</guid>
      <description>&lt;p&gt;Hey Hey Hey!&lt;/p&gt;

&lt;p&gt;Today was a review of what we have learned so far, using ideas such as &lt;strong&gt;loops&lt;/strong&gt;, &lt;strong&gt;strings&lt;/strong&gt;, and &lt;strong&gt;conditionals&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The challenge was, given a string &lt;strong&gt;S&lt;/strong&gt; of length &lt;strong&gt;N&lt;/strong&gt; that is indexed from &lt;strong&gt;0 to N-1&lt;/strong&gt;, print its even-indexed and odd-indexed characters as 2 space-separated strings on a single line.&lt;/p&gt;

&lt;p&gt;Here is my solution:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Cs6fRwh6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/dm1j21otdl9r5zeusocn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Cs6fRwh6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/dm1j21otdl9r5zeusocn.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I found this to be quite tough, but thanks to numerous sources online I was able to work through it.&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Day 5: Loops</title>
      <dc:creator>SEAN</dc:creator>
      <pubDate>Thu, 02 Jul 2020 21:45:09 +0000</pubDate>
      <link>https://dev.to/gradius93/day-5-loops-2lm0</link>
      <guid>https://dev.to/gradius93/day-5-loops-2lm0</guid>
      <description>&lt;h3&gt;
  
  
  Salutations!
&lt;/h3&gt;

&lt;p&gt;Welcome to another day of exploration and my endeavours with the 30 days of code challenge, Day 5. &lt;strong&gt;Loops&lt;/strong&gt; are the centre of todays attention. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Loops&lt;/strong&gt; are a fundamental part of coding, which feature in almost all programming languages, so understanding them is paramount. &lt;/p&gt;

&lt;p&gt;Python contains two different types of loops, the &lt;strong&gt;for&lt;/strong&gt; loops and the &lt;strong&gt;while&lt;/strong&gt; loop. &lt;strong&gt;For&lt;/strong&gt; loops can iterate over a sequence of numbers using the range function. &lt;strong&gt;While&lt;/strong&gt; loops repeat as long as a certain boolean condition is met.&lt;/p&gt;

&lt;p&gt;Todays challenge involved using a loop to iterate over a variable 10 times and multiply it by the iteration number. i decided to do this in both styles of loop.&lt;/p&gt;

&lt;p&gt;Here is my code for the &lt;strong&gt;for&lt;/strong&gt; loop:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TcfBv7Qy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/wikxywwmil8myp7tsx79.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TcfBv7Qy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/wikxywwmil8myp7tsx79.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
And here is the output:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--45k8FBQ7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/vm0ilwvu8h8fv7sppg9p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--45k8FBQ7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/vm0ilwvu8h8fv7sppg9p.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is my code for the &lt;strong&gt;while&lt;/strong&gt; loop:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bBaa-8ei--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/xsp7wh26gefxhj4nx01d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bBaa-8ei--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/xsp7wh26gefxhj4nx01d.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
and here is the output:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3vkFTjnY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5nydr3kear4fxudl7tw1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3vkFTjnY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5nydr3kear4fxudl7tw1.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Day 4: Class v Instance</title>
      <dc:creator>SEAN</dc:creator>
      <pubDate>Wed, 01 Jul 2020 21:30:20 +0000</pubDate>
      <link>https://dev.to/gradius93/day-4-class-v-instance-2m05</link>
      <guid>https://dev.to/gradius93/day-4-class-v-instance-2m05</guid>
      <description>&lt;h3&gt;
  
  
  Konnichiwa!
&lt;/h3&gt;

&lt;p&gt;Welcome to day 4! Python is an object orientated programming language (OOP) and this was the first introduction to one of the core ideas of OOP. The object of this task was to create a class. A class is kind of like a blueprint for a car. It contains all details about the amount of wheels, engine type, windows etc. based on this data we can construct the car. The car is the object.&lt;/p&gt;

&lt;p&gt;This task asked us to create a Person class with an instance variable(age), then to work out if the person was young or old depending on the age given. I felt it hit close to home as i don’t consider myself old, but apparently anything over 18 is! &lt;/p&gt;

&lt;p&gt;Heres my code: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ej0fSJqG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/zkk7c0072ied7156s5l9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ej0fSJqG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/zkk7c0072ied7156s5l9.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Day 3: Conditional Statements</title>
      <dc:creator>SEAN</dc:creator>
      <pubDate>Tue, 30 Jun 2020 17:37:48 +0000</pubDate>
      <link>https://dev.to/gradius93/day-3-conditional-statements-1kgn</link>
      <guid>https://dev.to/gradius93/day-3-conditional-statements-1kgn</guid>
      <description>&lt;h3&gt;
  
  
  Howdy!
&lt;/h3&gt;

&lt;p&gt;Welcome to another day of my 30 days of code. Todays topic was conditional statements. I focused on keywords &lt;strong&gt;if&lt;/strong&gt; &amp;amp; &lt;strong&gt;and&lt;/strong&gt; to work through this problem. I also implemented pythons built in &lt;strong&gt;range&lt;/strong&gt; function, which can take in 1, 2 or 3 parameters to work out if an element/variable is in a range of numbers. For this I used only two parameters each time.&lt;/p&gt;

&lt;p&gt;The problem was, given an integer (n), work out if it was weird or not weird given these conditions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;if n is odd, print 'Weird'&lt;/li&gt;
&lt;li&gt;if n is even, and in the range 2-5, print 'Not Weird'&lt;/li&gt;
&lt;li&gt;if n is even, and in the range 6-20, print 'Weird'&lt;/li&gt;
&lt;li&gt;if n is even, and greater than 20, print 'Not Weird'&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Heres my solution:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PNDsjfZ---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/678qhf57gdskplkxs8o4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PNDsjfZ---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/678qhf57gdskplkxs8o4.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Day 2: Operators</title>
      <dc:creator>SEAN</dc:creator>
      <pubDate>Mon, 29 Jun 2020 11:56:37 +0000</pubDate>
      <link>https://dev.to/gradius93/day-2-operators-1l0m</link>
      <guid>https://dev.to/gradius93/day-2-operators-1l0m</guid>
      <description>&lt;h3&gt;
  
  
  Hello!
&lt;/h3&gt;

&lt;p&gt;It's always good to understand operators in the language you are working in, so learning them just after datatypes seems like the best time. Day 2 of the 30 days of code concentrated on this subject. Operators are symbols that work with values or variables to produce desired results:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Arithmetic operators&lt;/strong&gt;&lt;br&gt;
(+) Addition, (-) Subtraction, (*) Multiplication, (/) Division, (%) Modulus, (//) Integer Division&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conditional operators&lt;/strong&gt;&lt;br&gt;
(&amp;gt;) Greater than, (&amp;lt;) Less than, (&amp;gt;=) Greater than or equal to, (&amp;lt;=) Less than or equal to (==) Equal&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Logical operators&lt;/strong&gt;&lt;br&gt;
(and), (or)&lt;/p&gt;

&lt;p&gt;The challenge this week was to find a meals cost by factoring in the price of the meal plus tax and tip. Here’s my solution:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---oikWUuD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/d2t5xxv87lbqvg1s9edx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---oikWUuD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/d2t5xxv87lbqvg1s9edx.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Day 1: Data Types</title>
      <dc:creator>SEAN</dc:creator>
      <pubDate>Sat, 27 Jun 2020 09:18:21 +0000</pubDate>
      <link>https://dev.to/gradius93/day-1-data-types-1apf</link>
      <guid>https://dev.to/gradius93/day-1-data-types-1apf</guid>
      <description>&lt;p&gt;The first day of code got underway well. Pythons datatypes are str(string), int(integer), float(float) and bool(boolean), however only three of those were being tested today. &lt;/p&gt;

&lt;p&gt;This challenge tested my knowledge of inputs and outputs, of datatypes int, float and str. After inputting the data, the next part of the challenge was using the + operator to add the sum of the two integers together and the same with the float, and to concatenate both the string values. &lt;/p&gt;

&lt;p&gt;Heres my code:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--J5aYPOth--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/w2t9hhyarzigi2zynkor.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--J5aYPOth--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/w2t9hhyarzigi2zynkor.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Day 0: Hello World!</title>
      <dc:creator>SEAN</dc:creator>
      <pubDate>Fri, 26 Jun 2020 18:09:22 +0000</pubDate>
      <link>https://dev.to/gradius93/day-1-hello-world-2k56</link>
      <guid>https://dev.to/gradius93/day-1-hello-world-2k56</guid>
      <description>&lt;p&gt;Hi there! I have decided to take part in the 30 days of code challenge, and what a familiar challenge to get me started! This didn't present too much of a challenge as I'm pretty used to this already. Still good to get the basics down!&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>30 Days of Code</title>
      <dc:creator>SEAN</dc:creator>
      <pubDate>Fri, 26 Jun 2020 18:05:11 +0000</pubDate>
      <link>https://dev.to/gradius93/30-days-of-code-54cd</link>
      <guid>https://dev.to/gradius93/30-days-of-code-54cd</guid>
      <description>&lt;p&gt;Hello, my name is Sean and I am in pursuit of my first developer job. &lt;/p&gt;

&lt;p&gt;On the advice of some articles I have read, and through examples I have seen on Dev, I have decided to document the 30 days of Code on HackerRank with python, a language I am deeply interested in and want to gain a well rounded understanding.&lt;/p&gt;

&lt;p&gt;I want to use this opportunity as well to introduce myself to the Dev community and the blogging world. Hello! :)&lt;/p&gt;

</description>
      <category>python</category>
    </item>
  </channel>
</rss>
