<?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: shawnkiplagat69</title>
    <description>The latest articles on DEV Community by shawnkiplagat69 (@shawnkiplagat69).</description>
    <link>https://dev.to/shawnkiplagat69</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%2F852673%2Fe672b9ee-6918-4b32-aef7-03a3f1e234d6.png</url>
      <title>DEV Community: shawnkiplagat69</title>
      <link>https://dev.to/shawnkiplagat69</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shawnkiplagat69"/>
    <language>en</language>
    <item>
      <title>A Beginner's Guide to Embedded Systems: Understanding the Basics</title>
      <dc:creator>shawnkiplagat69</dc:creator>
      <pubDate>Sun, 05 Feb 2023 17:06:28 +0000</pubDate>
      <link>https://dev.to/shawnkiplagat69/a-beginners-guide-to-embedded-systems-understanding-the-basics-21eh</link>
      <guid>https://dev.to/shawnkiplagat69/a-beginners-guide-to-embedded-systems-understanding-the-basics-21eh</guid>
      <description>&lt;p&gt;Have you ever wondered how a vending machine tells real coins and bills from fake ones? Or even how your refrigerator can be so smart as to notify you when you are low on your favourite snacks? But even more importantly, have you ever thought of really automating the tasks we do day in day out? With embedded systems nonetheless!!&lt;/p&gt;

&lt;h2&gt;
  
  
  So, What really is an embedded system?
&lt;/h2&gt;

&lt;p&gt;Basically, embedded systems are computer systems that have a dedicated function. The one in a vending machine for instance, would be there just to weigh a coin and compare the value with that of a real coin. &lt;/p&gt;

&lt;p&gt;In more precise terms, an embedded system is a microprocessor-based hardware computer system with integrated software (commonly termed as firmware) invented to perform a specific function as an independent or extensive system.&lt;/p&gt;

&lt;p&gt;Well, "embedded" because they more often than not exist within a larger mechanical or electrical system and hence cannot be seen. And "system" as it encompasses multiple components interfaced together for a common purpose. And the beauty of it all? Embedded systems are designed in such a way as to hide the complex part of it, whilst giving the user a user-friendly interface for user input and feedback; as the temperature knobs on a fridge lets you set the maximum, or minimum temperature while it handles the bulk of the task under the hood.&lt;/p&gt;

&lt;p&gt;In embedded systems, microcontrollers and microprocessors are commonly used to drive the systems. The difference?&lt;br&gt;
A microcontroller is usually bare metal; encompassing the Central Processing Unit (CPU) and the peripherals on the same chip, is often good at managing input and output, and is relatively easier to setup and use. Common examples include the &lt;a href="https://www.arduino.cc/" rel="noopener noreferrer"&gt;Arduino&lt;/a&gt;, &lt;a href="https://www.st.com/en/microcontrollers-microprocessors/stm32-32-bit-arm-cortex-mcus.html" rel="noopener noreferrer"&gt;the STM32&lt;/a&gt; and the esp32.&lt;/p&gt;

&lt;p&gt;A microprocessor, on the other hand, houses a more powerful CPU on a single chip that connects to external peripherals, and hence possesses a heavier processing power for complex logic operations and may even have an Operating System (OS). Common examples of such may include the &lt;a href="https://www.intel.com/content/www/us/en/products/details/processors/core.html" rel="noopener noreferrer"&gt;Intel Core Series&lt;/a&gt;, the &lt;a href="https://www.st.com/content/st_com/en/arm-32-bit-microcontrollers.html#:~:text=The%20Arm%C2%AE%20Cortex%C2%AE,%2Dcore%20microprocessors%20(MPUs)" rel="noopener noreferrer"&gt;ARM microprocessor&lt;/a&gt;. It is also worth noting that some microprocessors even encompass microcontrollers for further processing. Fascinating, don't you think?&lt;/p&gt;

&lt;h2&gt;
  
  
  What does an embedded system entail?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwhyqpv6eztpxj3z2qpgu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwhyqpv6eztpxj3z2qpgu.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
As we have already established, an embedded system comprises multiple components interfaced together for a common purpose;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;An embedded computer:&lt;/strong&gt; This is basically a processor such as the ARM/x86/&lt;a href="https://www.xilinx.com/products/som/what-is-a-som.html" rel="noopener noreferrer"&gt;A System On Module(SOM)&lt;/a&gt;/&lt;a href="https://www.qt.io/embedded-development-talk/how-to-select-the-right-cpu-or-soc-for-your-embedded-project#:~:text=What%20is%20an%20SoC%20in,to%20do%20their%20computing%20work." rel="noopener noreferrer"&gt;A System On Chip(SOC)&lt;/a&gt; or even a computer for the processing of information e.g the Raspberry Pi, Arduino, ESP32 etc&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;A user interface:&lt;/strong&gt; this is necessary for the display of information to the end user for feedback and interaction as well as getting user information as input via touch e.g an Organic Light Emitting Diode (OLED), Liquid Crystal Display (LCD)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;A link to other systems:&lt;/strong&gt; just as no man is an island, an embedded system also spots communication channels to other devices through communication protocols such as the Inter-Integrated Circuit (I2C), the Universal Asynchronous Receiver-Transmitter (UART), the Universal Synchronous/Asynchronous Receiver-Transmitter (USART), &lt;a href="https://copperhilltech.com/blog/controller-area-network-can-bus-serial-network-technology-for-embedded-systems/#:~:text=The%20CAN%20bus%20is%20primarily,more%20expensive%20and%20complex%20technologies." rel="noopener noreferrer"&gt;Controller Area Network (CAN) Bus&lt;/a&gt;, &lt;a href="https://en.wikipedia.org/wiki/Serial_Peripheral_Interface" rel="noopener noreferrer"&gt;The Serial Peripheral Interface (SPI)&lt;/a&gt;, etc.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Operating System
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdz4ebmgxzhegar35drlo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdz4ebmgxzhegar35drlo.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The OS processes input data using defined commands to give a definite output data through actuators such as motors, LEDs etc&lt;/p&gt;

&lt;h2&gt;
  
  
  Where are embedded systems used?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgbt41qs7ju77tqxyajtr.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgbt41qs7ju77tqxyajtr.jpeg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Automotive industry:&lt;/strong&gt; Nowadays, most of the vehicles in production have embedded systems; be it a music system, navigation system or even an auto-braking system. These systems serve to improve the device's functionality and enhancing the driving experience&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Medicine Industry:&lt;/strong&gt; Biomedical applications can help allow doctors remotely monitor patient's health and even offer prescription through telemedicine&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Manufacturing equipment:&lt;/strong&gt; Due to the active implementation of robots, artificial intelligence and Internet Of Things (IoT) into production processes, factories can control all types of automation systems, from online monitoring and remote control of equipment to replacing employees on assembly and production lines&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;&lt;a href="https://scand.com/company/blog/all-you-need-to-know-about-embedded-systems-development/" rel="noopener noreferrer"&gt;and so much more...&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjt50eb9j5vm9zg4j2xr8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjt50eb9j5vm9zg4j2xr8.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Typical applications example?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwf2ichwyqy146ns42kfo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwf2ichwyqy146ns42kfo.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is a simple home automation system built using the arduino microcontroller, some relays, sensors and wires. Pretty simple yet so fascinatingly useful don't you think?&lt;/p&gt;

&lt;h2&gt;
  
  
  So, what is Arduino?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.arduino.cc/" rel="noopener noreferrer"&gt;Arduino&lt;/a&gt; is an open-source hardware and software company, project and user community that designs and manufactures single-board microcontrollers and microcontroller kits for building digital devices.&lt;/p&gt;

&lt;h2&gt;
  
  
  What can the Arduino do?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Analog to Digital Conversion (ADC):&lt;/strong&gt; By connecting sensors to an arduino microcontroller, you can easily convert analog data to digital and push the output to other boards for further processing&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Automation:&lt;/strong&gt; Adding sensors on the microcontroller's General Purpose Input/Output (GPIO) ports, actuators, ADCs etc to enable the collection of external parameters (data) and processing them then performing the required tasks. &lt;/p&gt;

&lt;p&gt;In our simple smart home above for instance, we would have a simple temperature sensor on an arduino which constantly monitors the temperature of our room. Should the temperature go slightly higher than the standard room temperature, the Arduino sends a command to power on the fan and off when it drops.&lt;/p&gt;

&lt;h2&gt;
  
  
  What of the Raspberry Pi?
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Computing for everybody&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.raspberrypi.org/" rel="noopener noreferrer"&gt;The Raspberry Pi&lt;/a&gt; are small, single-board computers developed in the UK by the Raspberry Pi foundation in association with &lt;a href="https://www.broadcom.com/" rel="noopener noreferrer"&gt;Broadcom&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Raspberry Pi 4 Model B
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0z4bywsjeeweu6xhxhcl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0z4bywsjeeweu6xhxhcl.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The Raspberry Pi 4 model B gives you the power of a full-blown desktop in a small form factor:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Broadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz&lt;/li&gt;
&lt;li&gt;1GB, 2GB, 4GB or 8GB LPDDR4-3200 SDRAM (depending on model)&lt;/li&gt;
&lt;li&gt;2.4 GHz and 5.0 GHz IEEE 802.11ac wireless, Bluetooth 5.0, BLE&lt;/li&gt;
&lt;li&gt;Gigabit Ethernet&lt;/li&gt;
&lt;li&gt;2 USB 3.0 ports; 2 USB 2.0 ports.&lt;/li&gt;
&lt;li&gt;Raspberry Pi standard 40 pin GPIO header (fully backwards compatible with previous boards)&lt;/li&gt;
&lt;li&gt;2 × micro-HDMI ports (up to 4kp60 supported)&lt;/li&gt;
&lt;li&gt;2-lane MIPI DSI display port&lt;/li&gt;
&lt;li&gt;2-lane MIPI CSI camera port&lt;/li&gt;
&lt;li&gt;4-pole stereo audio and composite video port&lt;/li&gt;
&lt;li&gt;H.265 (4kp60 decode), H264 (1080p60 decode, 1080p30 encode)&lt;/li&gt;
&lt;li&gt;OpenGL ES 3.1, Vulkan 1.0&lt;/li&gt;
&lt;li&gt;Micro-SD card slot for loading operating system and data storage&lt;/li&gt;
&lt;li&gt;5V DC via USB-C connector (minimum 3A*)&lt;/li&gt;
&lt;li&gt;5V DC via GPIO header (minimum 3A*)&lt;/li&gt;
&lt;li&gt;Power over Ethernet (PoE) enabled (requires separate PoE HAT)&lt;/li&gt;
&lt;li&gt;Operating temperature: 0 – 50 degrees C ambient&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What can one do with such power?
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Basically, the limit is what you set it to be&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Software projects:&lt;/strong&gt; Use your favourite programming language to handle various programming tasks e.g fetching camera feed, AI/ML projects&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Automation:&lt;/strong&gt; Adding sensors on GPIO ports, actuators and ADCs enables the collection of external parameters which can be worked on and then performing the required tasks&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Servers/Media servers:&lt;/strong&gt; By creating a cluster of Raspberry Pis, you can be able to host/server content on the web. It can also be used to serve media over network. Furthermore, you can make home servers for hosting own websites, media, cloud storage etc.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5zc8sydcums55bvytsjk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5zc8sydcums55bvytsjk.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Use it as a desktop machine:&lt;/strong&gt; &lt;em&gt;Yes, you can really do that!&lt;/em&gt; Instead of your ordinary system unit, you can plug your Raspberry Pi onto your monitor and use it to type documents, watch movies, play games, browse, and maybe write even more code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4c22ditdxwxshtusbu6s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4c22ditdxwxshtusbu6s.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Robotics:&lt;/strong&gt; You can build complex robotic systems to automate tasks e.g with a lighting arms&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmv1k1jme00n9qgzya1yk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmv1k1jme00n9qgzya1yk.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Skills you will need?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Software skills&lt;/li&gt;
&lt;li&gt;Hardware skills&lt;/li&gt;
&lt;li&gt;Design skills - Computer Aided Design (CAD), Printed Circuit Board (PCB) design, &lt;a href="https://www.kicad.org/" rel="noopener noreferrer"&gt;kiCAd&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Evidently, embedded systems play a crucial role to our daily lives and are developing quickly across many sectors, including the automobile, telecommunications, and healthcare industries. The field of embedded systems will undoubtedly experience even more exciting advancements in the near future as technology continues to advance.&lt;/p&gt;

&lt;p&gt;Remember, &lt;em&gt;the limit is what you set it to be&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Brought to you by the &lt;a href="https://www.linkedin.com/company/ieee-dedan-kimahi-university-of-technology/" rel="noopener noreferrer"&gt;IEEE Dedan Kimathi University Student Branch&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>raspberrypi</category>
      <category>arduino</category>
      <category>linux</category>
    </item>
    <item>
      <title>Python 101: Introduction to Python Language for Beginners</title>
      <dc:creator>shawnkiplagat69</dc:creator>
      <pubDate>Sun, 24 Apr 2022 15:47:21 +0000</pubDate>
      <link>https://dev.to/shawnkiplagat69/python-101-introduction-to-python-language-for-beginners-2mpl</link>
      <guid>https://dev.to/shawnkiplagat69/python-101-introduction-to-python-language-for-beginners-2mpl</guid>
      <description>&lt;p&gt;Guido van Rossum designed Python, an interpreted high-level language that was launched in 1991. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Python programs end in.py and can be executed by running python file name.py from the command line.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The usage of white space rather than the more common symbols to delimit code blocks is probably its most obvious feature.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;End-of-line semicolons (;) are optional in Python and are rarely used. &lt;br&gt;
Python has emerged as the finest answer in a variety of fields, including online applications, data analysis, data science, machine learning, and artificial intelligence.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Python's Most Common Features:
&lt;/h2&gt;

&lt;p&gt;•  Simplicity: Focus on the code rather than the language's syntax.&lt;br&gt;&lt;br&gt;
•  Open Source: A powerful language that anybody can use and modify as they see fit.&lt;br&gt;
•  Portability: Python code can be shared and will continue to function as intended. &lt;br&gt;
•  Python is embeddable and extensible, which means it can contain snippets of other languages to execute certain tasks.&lt;br&gt;
•  Being Interpreted: Python takes care of huge memory tasks and other CPU-intensive operations, letting you to concentrate just on coding.&lt;br&gt;
•  Object Orientation: Objects aid in the decomposition of complex real-world problems so that they may be coded and solved to produce solutions.&lt;/p&gt;
&lt;h2&gt;
  
  
  Python's applications include:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Web Development - Python is used in the development of websites using popular frameworks such as Django, Flask, and FastApi.&lt;/li&gt;
&lt;li&gt; Embedded Applications - Because Python is based on C, it may be used to generate embedded C software for devices like the Raspberry Pi.&lt;/li&gt;
&lt;li&gt;Game development - the process of creating interactive games with the help of popular libraries such as pygame.&lt;/li&gt;
&lt;li&gt;Data Science and Data Visualization - Using data libraries like Matplotlib and Seaborn, data may be manipulated, represented, analyzed, and visualized. Graphical User Interface Applications (GUI) - Tkinter is used to create user interfaces.&lt;/li&gt;
&lt;li&gt;Machine Learning and Artificial Intelligence - Computers learn algorithms based on stored data using libraries such as Pandas, Scikit-Learn, and NumPy.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  Python Installation
&lt;/h2&gt;

&lt;p&gt;Download the latest Python version &lt;a href="https://www.python.org/downloads/"&gt;here&lt;/a&gt; based on your operating system&lt;/p&gt;
&lt;h2&gt;
  
  
  Pycharm installation
&lt;/h2&gt;

&lt;p&gt;Pycharm is a popular IDE(Integrated Development Environment) used for writing ,debugging and running python scripts.&lt;br&gt;
Download &lt;a href="https://www.jetbrains.com/pycharm/download"&gt;Pycharm IDE&lt;/a&gt; to start coding&lt;/p&gt;
&lt;h2&gt;
  
  
  Visual studio code installation
&lt;/h2&gt;

&lt;p&gt;Visual Studio Code is a Text-editor used to write and run python scripts. Download &lt;a href="https://code.visualstudio.com/download"&gt;Visual Studio Code&lt;/a&gt; and start coding!&lt;/p&gt;
&lt;h2&gt;
  
  
  Building your first Python Program
&lt;/h2&gt;

&lt;p&gt;"Hello World"&lt;/p&gt;

&lt;p&gt;Start your Pycharm IDE, select a new file and save it with the .py extension. Example hello_world.py.&lt;/p&gt;

&lt;p&gt;Write the following code in the hello_world.py file and run your first program!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print("Hello World")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Print() function is an in-built function used to give outputs.&lt;/p&gt;

&lt;p&gt;The following Output will be displayed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Hello World
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Variables
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Variables&lt;/strong&gt; just like hotel suites, are containers for storing data values.&lt;br&gt;
Here's the syntax for assigning variables to data values.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;variable_name = data_value
 For example, name = shawn
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Rules for Naming Variables
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A variable name must start with a letter or the underscore character.&lt;/li&gt;
&lt;li&gt;A variable name cannot start with a number.&lt;/li&gt;
&lt;li&gt;A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ ).&lt;/li&gt;
&lt;li&gt;Variable names are case-sensitive (name, Name and NAME are all different variables).
&lt;strong&gt;Reminder though:&lt;/strong&gt;
Variables need not to be declared. Their data types are inferred from their assignment statement, meaning that different data types can be assigned to the same variable throughout the code. This is just what makes Python a dynamically typed language. &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Keywords
&lt;/h2&gt;

&lt;p&gt;Every programming language has special reserved words, or keywords, that have specific meanings and restrictions around how they should be used. Python is no different. Python keywords are the fundamental building blocks of any Python program. Examples of such keywords include False, True, and, is, class, def, return, try, as ,pass, break, continue, for, while and except.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Identifiers&lt;/strong&gt;&lt;br&gt;
Identifiers are names used to identify variables, functions,&lt;br&gt;
classes, modules or other objects. Identifiers start with letter A to Z or a to z or an underscore (_) followed by zero or more letters, underscores and digits (0 to 9).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Literals&lt;/strong&gt;&lt;br&gt;
Literals are the raw data that is assigned to variables or constants while programming in Python. String literals, numeric literals, boolean literals, literal collections, and a special literal, None, are the five types of literals we have. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data Types&lt;/strong&gt;&lt;br&gt;
A Data Type is a classification that specifies which type of value a variable has and of what type. Examples of in-built data types include&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Binary Types: memoryview, bytearray, bytes.&lt;/li&gt;
&lt;li&gt;Boolean Type: bool.&lt;/li&gt;
&lt;li&gt;Set Types: frozenset, set.&lt;/li&gt;
&lt;li&gt;Mapping Type: dict.&lt;/li&gt;
&lt;li&gt;Sequence Types: range, tuple, list.&lt;/li&gt;
&lt;li&gt;Numeric Types: complex, float, int.&lt;/li&gt;
&lt;li&gt;Text Type: str.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  Comments
&lt;/h2&gt;

&lt;p&gt;Comments in Python are the lines in the code that are ignored by the interpreter during the execution of the program. Generally comments enhance the readability of the code and help other programmers interpret your code.&lt;br&gt;
&lt;strong&gt;Types of comments include:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Single line comments
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#This is a single line comment
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Multi-line comments
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;'''
 This 
 is a multi-line 
 comment
'''
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  Operators
&lt;/h2&gt;

&lt;p&gt;Operators are special symbols in python that carry out arithmetic and logical computation. The value that the operator operates on is called an Operand.&lt;/p&gt;
&lt;h2&gt;
  
  
  Types of Operators include
&lt;/h2&gt;
&lt;h2&gt;
  
  
  1. Arithmetic Operators
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print(2 + 3)  # 5 (addition)
print(3 - 2)  # 1 (subtraction)
print(3 * 3)  # 9 (multiplication)
print(84 / 2)  # 42.0 (division)
print(2 ** 2)  # 4 (exponent)
print(3 % 2)  # 1 (remainder of the division)
print(11 // 2)  # 5 (floor division)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  2. Comparison Operators
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;==  Equal to    2 == 3
!=  Not equal   2 != 3  
&amp;gt;   Greater than    3 &amp;gt; 2   
&amp;lt;   Less than   2 &amp;lt; 3   
=&amp;gt;  Greater than or equal to    x =&amp;gt; y
&amp;lt;=  Less than or equal to    x&amp;lt;=y  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  3. Assignment Operators
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=      x = 5   same as   x = 5  
+=    x += 3   same as   x = x + 3  
-=    x -= 3   same as   x = x - 3  
*=    x *= 3   same as   x = x * 3  
/=    x /= 3   same as   x = x / 3  
%=    x %= 3   same as   x = x % 3  
//=   x //= 3  same as   x = x // 3 
**=   x **= 3  same as   x = x ** 3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  4. Logical Operators
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;and     Returns True if both statements are true    x &amp;lt; 5 and  x &amp;lt; 10   
or  Returns True if one of the statements is true   x &amp;lt; 5 or x &amp;lt; 4  
not Reverse the result, returns False if the result is true not(x &amp;lt; 5 and x &amp;lt; 10)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  5. Membership Operators
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;in   Returns True if a sequence with the specified value is present in the object    x in y  
not in  Returns True if a sequence with the specified value is not present in the object    x not in y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  Conditions and If Statements
&lt;/h2&gt;

&lt;p&gt;Python statements such as if , elif and else are used when you need python to check whether a certain condition is met before a certain line of code gets executed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#if-else ladder used in grading a students results
if grade &amp;gt;= 85:
  print("Grade A ")
elif grade &amp;gt;= 80:
  print("Grade B ")
elif grade &amp;gt;=70:
  print("Grade C ")
elif grade &amp;gt;=60:
  print("Grade D ")
else:
  print(" Sorry, you have failed terribly!! Repeat the semester")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Loops
&lt;/h2&gt;

&lt;p&gt;A Loop also known as an iterative statement, is a control flow statement that is used to repeatedly execute a group of statements as long as a certain set condition is satisfied.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python has two primitive loop commands which are while and&lt;br&gt;
for loops.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- For Loop&lt;/strong&gt; - It Iterates through the elements(list, tuple, dictionary, set, string)in the order that they appear.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#this function prints each name in the name list:
names = ["shawn", "victor", "joy","anthony"]
for all_names in names:
  print(all_names)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;- While Loop&lt;/strong&gt; - executes a set of statements as long as a condition is true.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#functoin that prints i as long as i is less than 6:
i = 1
while i &amp;lt; 6:
  print(i)
  i += 1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;- The Break Statement&lt;/strong&gt;&lt;br&gt;
It is used to exit a loop when an external condition is triggered.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#Exits the loop whenever the value of i is equal to 3
i = 1
while i &amp;lt; 6:
  print(i)
  if i == 3:
    break
  i += 1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;- Continue Statement&lt;/strong&gt;&lt;br&gt;
It is used to skip the execution of the current iteration and continues to the next.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#Continues to the next iteration if i is 3:
i = 0
while i &amp;lt; 6:
  i += 1
  if i == 3:
    continue
  print(i)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;- Pass Statement&lt;/strong&gt;&lt;br&gt;
When the pass statement is executed, nothing happens, but you avoid getting an error when empty code is not allowed.&lt;br&gt;
Empty code is not allowed in loops, function definitions, class definitions, or in if statements.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def info():
print("This function will get executed while the second function won't be executed")
 info()


def myfunction():
  pass
#having an empty function definition like this, would raise an error without the pass statement
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Functions
&lt;/h2&gt;

&lt;p&gt;A function is a block of code which only runs when it is called. You can pass data, known as parameters, into a function. A function can return data as a result.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to create a function in Python
&lt;/h2&gt;

&lt;p&gt;Use the def keyword to define a function&lt;br&gt;
&lt;strong&gt;example&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def sum():
print(2+3)

#Calling the sum function
sum()
#The output is 5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Arguments and Parameters
&lt;/h2&gt;

&lt;p&gt;Data can be passed to functions through parameters inform of arguments.&lt;br&gt;
Parameters are specified after the function name, inside the parentheses and are separated with a comma.&lt;br&gt;
An Argument is the actual data passed to the function.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def sum(a,b):
'''a and b are the parameters  
sum is the function
def is used to define the function
'''
print(a+b)


#Calling the function
sum(2,3)
#2 and 3 are the arguments
#The output is 5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Well I guess that's all that we shall be covering in this article. I am very delighted that you had the chance to go through it. Do stay tuned though, for more Python Concepts articles so that we all learn together.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>tutorial</category>
      <category>python</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
