<?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: Keshav Jindal </title>
    <description>The latest articles on DEV Community by Keshav Jindal  (@jindalkeshav82).</description>
    <link>https://dev.to/jindalkeshav82</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%2F880487%2Fb774457a-6aa1-46a0-8674-547b6ba43398.jpeg</url>
      <title>DEV Community: Keshav Jindal </title>
      <link>https://dev.to/jindalkeshav82</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jindalkeshav82"/>
    <language>en</language>
    <item>
      <title>How to create a web page using HTML, a step-by-step tutorial.</title>
      <dc:creator>Keshav Jindal </dc:creator>
      <pubDate>Sun, 09 Jul 2023 17:01:01 +0000</pubDate>
      <link>https://dev.to/jindalkeshav82/how-to-create-a-web-page-using-html-a-step-by-step-tutorial-e54</link>
      <guid>https://dev.to/jindalkeshav82/how-to-create-a-web-page-using-html-a-step-by-step-tutorial-e54</guid>
      <description>&lt;h2&gt;
  
  
  About
&lt;/h2&gt;

&lt;p&gt;In this article we will learning that how we could create a webpage only with the help of HTML. This particular article will also give you a basic working of some of the common HTML tags. &lt;/p&gt;




&lt;h2&gt;
  
  
  Step1: Creating the folder
&lt;/h2&gt;

&lt;p&gt;Create a new folder on your system to hold your webpage files. Name it something like "MyWebPage". This folder will be the root directory for your webpage.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step2: Setting up the HTML file
&lt;/h2&gt;

&lt;p&gt;Create a HTML file with .html extension in the editor. I’ll be using Virtual Studio Code as my editor. Give the file a meaningful name like &lt;code&gt;index.html&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step3: Add the basic HTML structure
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;MyWebPage&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Paste the following code in the editor and our system is ready to a create webpage.&lt;/p&gt;

&lt;h4&gt;
  
  
  NOTE
&lt;/h4&gt;

&lt;p&gt;Shortcut for Step3 which works only in VS Code is: &lt;br&gt;
&lt;code&gt;html:5&lt;/code&gt; and you get the same basic HTML structure written. &lt;/p&gt;

&lt;p&gt;HTML doctype declaration tells the browser that this is an HTML document. Followed by the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tag which will contain the title which is displayed in the browser’s title bar, and meta data of our webpage. Then comes the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag, which can be divided into many sub parts like the header, main and footer which together forms a webpage.&lt;/p&gt;
&lt;h2&gt;
  
  
  Step4: Add content to the webpage
&lt;/h2&gt;

&lt;p&gt;Inside the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; section, you can add various elements which will make up our webpage. It may include a paragraph tag &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;, a heading tag &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;, inline tags, etc. Let's add a heading followed by paragraph of text to our webpage.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;My Web Page&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;h1&amp;gt;
        About Me
    &amp;lt;/h1&amp;gt;
    &amp;lt;p&amp;gt;
        Welcome to my About Me page! Here's some information about who I am.
        &amp;lt;h3&amp;gt;[your name]&amp;lt;/h3&amp;gt;
        &amp;lt;h3&amp;gt;[your favourites]&amp;lt;/h3&amp;gt;
    &amp;lt;/p&amp;gt;    
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the code above, &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; tag is used to give the heading, while the &lt;code&gt;&amp;lt;h3&amp;gt;&lt;/code&gt; tag is used to give subheading. Then, we have used &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; for paragraph.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step5: Our basic webpage is ready!
&lt;/h2&gt;

&lt;p&gt;Save the changes you made to the "index.html" file. Now, you can open it in a web browser to see your webpage. Simply double-click the "index.html" file, and it should open in your default web browser.&lt;/p&gt;

&lt;h3&gt;
  
  
  Output
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UrDfgGkY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tb3qqtlw9fygoyln5s0f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UrDfgGkY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tb3qqtlw9fygoyln5s0f.png" alt="Image description" width="800" height="392"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>tutorial</category>
      <category>html</category>
    </item>
    <item>
      <title>Understanding HTML tags.</title>
      <dc:creator>Keshav Jindal </dc:creator>
      <pubDate>Sun, 09 Apr 2023 11:04:02 +0000</pubDate>
      <link>https://dev.to/jindalkeshav82/understanding-html-tags-3ck5</link>
      <guid>https://dev.to/jindalkeshav82/understanding-html-tags-3ck5</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. What are tags?&lt;/strong&gt;&lt;br&gt;
Tags are the basic building blocks of HTML. HTML is a group different kind of tags having their own unique properties. Every tag contains opening and closing tag. Tags are also opened and closed in a specific order. The most recent tag should be closed first than the outer one.&lt;br&gt;
For example:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--20XiLxO---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s0xf5jtgx1svdm3q7niq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--20XiLxO---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s0xf5jtgx1svdm3q7niq.png" alt="Image description" width="800" height="476"&gt;&lt;/a&gt;&lt;br&gt;
There are many number of tags, a few of are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Heading tag.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Paragraph tag.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Image tag and many more.&lt;br&gt;
We will understand each tag in detail in next module.&lt;br&gt;
&lt;strong&gt;2. Let's see few examples for better understanding:&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example-1;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h1&amp;gt;My HTML webpage content.&amp;lt;/h1&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OUTPUT:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kD_V8z0W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5y8ez9l41jm3e1gf1ftc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kD_V8z0W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5y8ez9l41jm3e1gf1ftc.png" alt="Image description" width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Example-2;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h2&amp;gt;My Blog post&amp;lt;/h2&amp;gt;
&amp;lt;img src="https://dev-to-uploads.s3.amazonaws.com/uploads/logos/resized_logo_UQww2soKuUsjaOGNB38o.png" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OUTPUT:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mMl0tehl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qfybtsfo9i9q2m18qmjo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mMl0tehl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qfybtsfo9i9q2m18qmjo.png" alt="Image description" width="800" height="328"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>html</category>
    </item>
    <item>
      <title>Customization using Matplotlib in Python.</title>
      <dc:creator>Keshav Jindal </dc:creator>
      <pubDate>Tue, 07 Mar 2023 18:17:00 +0000</pubDate>
      <link>https://dev.to/jindalkeshav82/customization-using-matplotlib-in-python-2ji5</link>
      <guid>https://dev.to/jindalkeshav82/customization-using-matplotlib-in-python-2ji5</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. What is Matplotlib&lt;/strong&gt;&lt;br&gt;
Matplotlib is a popular data visualization library in Python widely used for creating static, interactive, and animated visualizations in Python. We can represent our data in many interactive ways like Graphs, Histograms, Pie Chart, etc.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Why Matplotlib&lt;/strong&gt;&lt;br&gt;
It provides a wide range of customization options to make your graphs more informative and visually appealing. Here are some of the customization options available in Matplotlib:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Adding markers&lt;/li&gt;
&lt;li&gt;Changing kind of graph&lt;/li&gt;
&lt;li&gt;Adding labels and titles&lt;/li&gt;
&lt;li&gt;Adding legends&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;3. Using markers in graphs&lt;/strong&gt;&lt;br&gt;
Markers in Matplotlib are used to represent data points on a plot with a symbol, such as a circle, square, or triangle. We can perform various function and customizations using keyword *&lt;em&gt;marker *&lt;/em&gt; like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Changing the marker size&lt;/li&gt;
&lt;li&gt;Changing the marker color&lt;/li&gt;
&lt;li&gt;Changing the marker edge color and width&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Syntax&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;import matplotlib.pyplot as plt
import pandas as pd

ypoints = [10,20,34,40,15]

plt.plot(ypoints, marker = 'o', markeredgecolor='black', markersize=7, markerfacecolor='red')
plt.show()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4b5I7Baq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/efqx3wg98hyf5vu4k6g7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4b5I7Baq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/efqx3wg98hyf5vu4k6g7.png" alt="Image description" width="640" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Different kind to represent our data&lt;/strong&gt;&lt;br&gt;
We can represent our data in many interactive forms like:&lt;br&gt;
Pie charts, Histograms, BarCharts, etc. using a keyword &lt;strong&gt;kind&lt;/strong&gt;. &lt;br&gt;
&lt;strong&gt;Note&lt;/strong&gt;&lt;br&gt;
Kind of graph is written as a string.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Syntax&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;import matplotlib.pyplot as plt
import pandas as pd

data = {'x': [1, 2, 3, 4, 5], 'y': [2, 4, 6, 8, 10]}
df = pd.DataFrame(data)
graph = df.plot(kind="bar")
plt.show(graph)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--W6K8-pNd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6zjakkihi17befefwqqi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--W6K8-pNd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6zjakkihi17befefwqqi.png" alt="Image description" width="640" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Labels and titles&lt;/strong&gt;&lt;br&gt;
Labels and titles are most important components of a Matplotlib plot, as they provide information about the data being visualized. They make the plot easier to understand. We can add labels both on x and y axis while title provides the plot to a name which becomes more informative.&lt;br&gt;
&lt;strong&gt;Syntax&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;import matplotlib.pyplot as plt
import pandas as pd

data = {'x': [1, 2, 3, 4, 5], 'y': [2, 4, 6, 8, 10]}
df = pd.DataFrame(data)
graph = df.plot(kind="bar")
plt.title("Monthly Sales")
plt.xlabel("Years")
plt.ylabel("Sales")
plt.show(graph)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uL_CY6cP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6mhb8xsqkbzu02h0vsxj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uL_CY6cP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6mhb8xsqkbzu02h0vsxj.png" alt="Image description" width="640" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Customization using Legend&lt;/strong&gt;&lt;br&gt;
Legend is used to identify and distinguish between different plots in a figure. We can change the color of multiple bars which makes our plot more interactive and easier to understand.&lt;br&gt;
&lt;strong&gt;Syntax&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;import matplotlib.pyplot as plt
import pandas as pd

data = {'x': [1, 2, 3, 4, 9], 'y': [2, 5, 6, 8, 10]}
df = pd.DataFrame(data)
graph = df.plot(kind="bar")
plt.legend(["blue","orange"])
plt.show(graph)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YpTmYa8a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/549mzmkni5eo1m2lc4mr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YpTmYa8a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/549mzmkni5eo1m2lc4mr.png" alt="Image description" width="640" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>tutorial</category>
      <category>python</category>
    </item>
    <item>
      <title>Intro to Matplotlib in Python, Part1-plot().</title>
      <dc:creator>Keshav Jindal </dc:creator>
      <pubDate>Thu, 26 Jan 2023 09:44:44 +0000</pubDate>
      <link>https://dev.to/jindalkeshav82/intro-to-matplotlib-in-python-part1-plot-44n1</link>
      <guid>https://dev.to/jindalkeshav82/intro-to-matplotlib-in-python-part1-plot-44n1</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. What is Matplotlib&lt;/strong&gt;&lt;br&gt;
It is a library which helps us to plot and visualize the data in 2D form. It is an easy way to represent huge amount of data. It was introduced by John D.Hunter in the year 2002.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Why Matplotlib&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Easy visualization to data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Consist of bar graphs, histograms, pie charts, line graphs, etc.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Compatible with other third-party libraries and packages, that extend its functionality.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;3. Plotting on X and Y axis&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;By default, the plot() function draws a line from point to point.&lt;/li&gt;
&lt;li&gt;Also draws points on graph.&lt;/li&gt;
&lt;li&gt;positions of points are in order. Eg(10,7), here 10 is point on X axis and 7 on Y axis.&lt;/li&gt;
&lt;li&gt;Example:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import matplotlib.pyplot as plt
import numpy as np

x = np.array([1, 8])
y = np.array([3, 10])
plt.plot(x,y)
plt.show()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OUTPUT&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3RYyVRYh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fn9clj0v0chdua8f6vls.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3RYyVRYh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fn9clj0v0chdua8f6vls.png" alt="Image description" width="640" height="478"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The x-axis is the horizontal axis.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The y-axis is the vertical axis.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>programming</category>
      <category>tutorial</category>
      <category>python</category>
    </item>
    <item>
      <title>Dictionaries in Python.</title>
      <dc:creator>Keshav Jindal </dc:creator>
      <pubDate>Thu, 29 Dec 2022 15:18:40 +0000</pubDate>
      <link>https://dev.to/jindalkeshav82/dictionaries-in-python-3l8m</link>
      <guid>https://dev.to/jindalkeshav82/dictionaries-in-python-3l8m</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. What are dictionaries in Python&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Dictionary is one of the data types which is used to store data in the pairs of key : data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is ordered.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is mutable.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Keys should not be duplicated but data can be same.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Dictionaries are written with curly brackets.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2. Creating a Dictionary&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It is encloses in curly {} braces.&lt;/li&gt;
&lt;li&gt;Separated by a comma (,).&lt;/li&gt;
&lt;li&gt;It holds values in pairs of keys corresponding with data.&lt;/li&gt;
&lt;li&gt;Keys cannot be repeated and are immutable.&lt;/li&gt;
&lt;li&gt;Data can be of any Datatype.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;2.1 Example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dict = {1: 'A', 2: 'B', 3: 'C'}
print(dict)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OUTPUT&lt;br&gt;
{1: 'A', 2: 'B', 3: 'C'}&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Accessing data of a dictionary&lt;/strong&gt;&lt;br&gt;
We can access the data by their respective keys.&lt;br&gt;
&lt;strong&gt;3.1 Syntax&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;dict = {1: 'A', 2: 'B', 3: 'C'}
print(dict[1])
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OUTPUT&lt;br&gt;
A&lt;br&gt;
&lt;strong&gt;4. Adding elements to a dictionary&lt;/strong&gt;&lt;br&gt;
Syntax:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dict = {1: 'A', 2: 'B', 3: 'C'}
print("old dictionary")
print(dict)
new_dict=dict[4]='a'
print("Updated dictionary")
print(dict)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OUTPUT:&lt;br&gt;
old dictionary&lt;br&gt;
{1: 'A', 2: 'B', 3: 'C'}&lt;br&gt;
Updated dictionary&lt;br&gt;
{1: 'A', 2: 'B', 3: 'C', 4: 'a'} &lt;/p&gt;

</description>
      <category>programming</category>
      <category>python</category>
      <category>dictionary</category>
    </item>
    <item>
      <title>Objects in JavaScript.</title>
      <dc:creator>Keshav Jindal </dc:creator>
      <pubDate>Tue, 29 Nov 2022 12:50:34 +0000</pubDate>
      <link>https://dev.to/jindalkeshav82/objects-in-javascript-31bh</link>
      <guid>https://dev.to/jindalkeshav82/objects-in-javascript-31bh</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. What are Objects&lt;/strong&gt;&lt;br&gt;
Objects are one of the datatype in JavaScript which is very useful as it can store multiple type of values like: string, Boolean, int, etc. &lt;br&gt;
For example: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.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%2Flr17yqlap82v15flxr0c.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Flr17yqlap82v15flxr0c.jpeg" alt="Image description" width="232" height="355"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Properties  
book.name= Harry Potter         
book.color= Purple
book.size= A4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Accessing the data&lt;/strong&gt;&lt;br&gt;
for example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const person = {
  firstName: "John",
  lastName: "Doe",
  age: 50,
  eyeColor: "blue"
};
console.log(person.age);
console.log(person.eyecolor);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
50&lt;br&gt;
blue&lt;br&gt;
&lt;strong&gt;3. Object Methods&lt;/strong&gt;&lt;br&gt;
Object Methods can be accessed by using functions which are stored as properties in JavaScript.&lt;br&gt;
 Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const my_object = {
  firstName: "Ronn",
  lastName : "Doe",
  uid       : 9980,
  }
};
console.log(my_object)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
  firstName: "Ronn",&lt;br&gt;
  lastName : "Doe",&lt;br&gt;
  uid       : 9980,&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Accessing Object Methods&lt;/strong&gt;&lt;br&gt;
Syntax:&lt;br&gt;
object_name.property;&lt;br&gt;
OR&lt;br&gt;
object_name["property"]&lt;/p&gt;

</description>
      <category>career</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Functions in JavaScript.</title>
      <dc:creator>Keshav Jindal </dc:creator>
      <pubDate>Sat, 05 Nov 2022 13:37:46 +0000</pubDate>
      <link>https://dev.to/jindalkeshav82/functions-in-javascript-87n</link>
      <guid>https://dev.to/jindalkeshav82/functions-in-javascript-87n</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. Introduction&lt;/strong&gt;&lt;br&gt;
Function is a block of code which perform specific task in a better and efficient way.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Syntax&lt;/strong&gt;&lt;br&gt;
It is defined using &lt;em&gt;function&lt;/em&gt; keyword, then followed by the name of the function say var1, followed with parentheses ().&lt;br&gt;
Function name follows same rules as of variable name.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function var1(par1, par2) {
code to be executed
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Uses of Functions&lt;/strong&gt;&lt;br&gt;
Functions basically resist the repetition of same code again and again. Once the code is designed, we can use it multiple times just by giving the &lt;br&gt;
arguments.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function add(num1, num2) {
  const addition = num1 + num2;
  console.log(addition);
}
add(2, 1);
add(63,232):
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
3&lt;br&gt;
295&lt;br&gt;
&lt;strong&gt;3. Function Return&lt;/strong&gt;&lt;br&gt;
When &lt;em&gt;return&lt;/em&gt; keyword is used in Function and it reaches to return statement, the code will stop executing. Return keyword helps in future use of the output of Function.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function multi(par1, par2) {
  return par1 * par2;
}
console.log(multi(10, 2));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>programming</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Intro to Array in JavaScript.</title>
      <dc:creator>Keshav Jindal </dc:creator>
      <pubDate>Thu, 13 Oct 2022 08:31:29 +0000</pubDate>
      <link>https://dev.to/jindalkeshav82/intro-to-array-in-javascript-3e75</link>
      <guid>https://dev.to/jindalkeshav82/intro-to-array-in-javascript-3e75</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. Introduction&lt;/strong&gt;&lt;br&gt;
Array is a unique kind of variable which can store multiple values. It is enclosed in square [] brackets. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Syntax&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;const variable_name= [//"data"];
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Its importance&lt;/strong&gt;&lt;br&gt;
Array is very helpful as it makes our work easier and also make code less complicated and simple. We don't need to create multiple variables as we can store multiple kind of data in one. &lt;br&gt;
&lt;strong&gt;NOTE&lt;/strong&gt;&lt;br&gt;
We can modify the data in array once declared.&lt;br&gt;
&lt;strong&gt;3. Array length&lt;/strong&gt;&lt;br&gt;
We can access the no of items in the array using 'length' keyword.&lt;br&gt;
For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const cars= ['BMW', 'Audi', 'Mercedes'];
console.log(cars.length)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output for above example is:&lt;br&gt;
3 is output, as there are three items in the array.&lt;br&gt;
Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const laptops = ['Lenovo', 'Dell', 'HP'];
console.log(laptops.length)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output:&lt;br&gt;
3&lt;br&gt;
&lt;strong&gt;4. Array Push&lt;/strong&gt;&lt;br&gt;
Array Push adds the item at the end of the sequence.&lt;br&gt;
For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const fruits= ['Apple', 'Mango', 'Banana'];
fruits.push('Orange');
console.log(fruits)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
["Apple", "Mango", "Banana", "Orange"]&lt;br&gt;
In above example, an array named fruits was created and in statement 2, using push keyword, 'orange' was added in the list. &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>array</category>
      <category>programming</category>
    </item>
    <item>
      <title>Conditional statement in JavaScript.</title>
      <dc:creator>Keshav Jindal </dc:creator>
      <pubDate>Sun, 02 Oct 2022 11:40:44 +0000</pubDate>
      <link>https://dev.to/jindalkeshav82/conditional-statement-in-javascript-3bg7</link>
      <guid>https://dev.to/jindalkeshav82/conditional-statement-in-javascript-3bg7</guid>
      <description>&lt;p&gt;&lt;strong&gt;1.Introduction&lt;/strong&gt;&lt;br&gt;
Conditions are very important topic in programming.&lt;br&gt;
They are extensively used in programming as they determines a True and False condition in the code. They are of three types:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;if condition&lt;/li&gt;
&lt;li&gt;else if condition&lt;/li&gt;
&lt;li&gt;else condition &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;br&gt;
if, else if, else are the keywords and are not same as If, Else if, Else.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.if condition&lt;/strong&gt;&lt;br&gt;
if condition determines the True condition.&lt;br&gt;
&lt;strong&gt;Syntax&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;if (condition) {
 //the code block to be executed if condition is True
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2.1-Examples of if condition&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Example 1:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const var1=10;
if (var1==10){
console.log("Its right")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;OUTPUT&lt;/strong&gt;&lt;br&gt;
"Its right".&lt;br&gt;
In the above example we have declared a variable and assigned a value to it, then we checked its value through if condition.&lt;/p&gt;

&lt;p&gt;Example 2:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (10/2 == 5){
  console.log("Its correct")
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;OUTPUT&lt;/strong&gt;&lt;br&gt;
"Its correct".&lt;br&gt;
&lt;strong&gt;3.else if condition&lt;/strong&gt;&lt;br&gt;
else if condition is preceded by an if condition, and it is checked when the first if condition is not True.&lt;br&gt;
&lt;strong&gt;3.1 Syntax&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;else if(condition){
//the block of code to be executed if the first if condition is  False 
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3.2-Examples of else if condition&lt;/strong&gt;&lt;br&gt;
Example 1:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const var1=50;
if (var1&amp;gt;100){
console.log("Its greater than 100")
}else if(var1&amp;gt;40){
console.log("Its greater than 40")
}else{
console.log("Input Invalid")
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;OUTPUT&lt;/strong&gt;&lt;br&gt;
Its greater than 40 .&lt;br&gt;
In above example, firstly if condition was checked by the machine which was False ,then machine checked else if condition which got True. &lt;br&gt;
&lt;strong&gt;4.else condition&lt;/strong&gt;&lt;br&gt;
It is the block of code which is executed when the specified condition is False.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4.1-Syntax&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;else {
//code block to be executed when if condition id not True
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;4.2-Examples of else condition&lt;/strong&gt;&lt;br&gt;
Example 1:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const num1=10;
const num2=20;
if (num1&amp;gt;num2){
console.log("num1 is greater than num2")
}else{
console.log("num2 is greater than num1")
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example 2:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const var1=10;
if (var1 % 2 !== 0){
  console.log("Its a Even Number")
}else{
  console.log('Its a Odd Number')
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
      <category>conditions</category>
    </item>
    <item>
      <title>What is Machine Learning?</title>
      <dc:creator>Keshav Jindal </dc:creator>
      <pubDate>Mon, 26 Sep 2022 11:09:16 +0000</pubDate>
      <link>https://dev.to/jindalkeshav82/what-is-machine-learning-1kgd</link>
      <guid>https://dev.to/jindalkeshav82/what-is-machine-learning-1kgd</guid>
      <description>&lt;p&gt;&lt;strong&gt;1.Introduction to AI&lt;/strong&gt;&lt;br&gt;
AI stands for Artificial Intelligence. It enhances the human efficiency and capabilities. It tells us how to manage a huge amount of data in an easier and efficient way. It is used in various fields like:&lt;br&gt;
1.Enterprise.&lt;br&gt;
2.chatbots.&lt;br&gt;
3.Health Care.&lt;br&gt;
4.Banking, etc.&lt;br&gt;
 &lt;strong&gt;Definition&lt;/strong&gt;&lt;br&gt;
When human intelligence is put into a machine and the machine is able to perform various tasks on the basis upon the given data. To do this a person should have a good knowledge of Algorithm and basics  of mathematics.&lt;br&gt;
&lt;strong&gt;2.Domains of AI&lt;/strong&gt;&lt;br&gt;
There are three domains or sub parts of AI. These are as follows:&lt;/p&gt;

&lt;p&gt;1.Machine Learning or Data Science.&lt;br&gt;
2.Computer Vision.&lt;br&gt;
3.Natural language processing(NLP).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gYWcTp-S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oc5dixw0genzq27lzfc7.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gYWcTp-S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oc5dixw0genzq27lzfc7.jpeg" alt="Image description" width="800" height="326"&gt;&lt;/a&gt;&lt;br&gt;
In this article we are going to understand the first domain of AI i.e. Machine Learning.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.Machine Learning or Data Science&lt;/strong&gt;&lt;br&gt;
This domain of AI deals with teaching and adapting capabilities of machine. We are training the machine to respond to an situation where it can work more efficiently than humans. This capability of responding is done in three steps. These are :&lt;br&gt;
1.The data is given to a machine .&lt;br&gt;
2.The machine analyze the data .&lt;br&gt;
3.The machine gives us the prediction.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>Append() function in Python.</title>
      <dc:creator>Keshav Jindal </dc:creator>
      <pubDate>Tue, 13 Sep 2022 12:43:14 +0000</pubDate>
      <link>https://dev.to/jindalkeshav82/append-function-in-python-4an</link>
      <guid>https://dev.to/jindalkeshav82/append-function-in-python-4an</guid>
      <description>&lt;p&gt;&lt;strong&gt;1.What is Append function?&lt;/strong&gt;&lt;br&gt;
Append function is used to add a item at the end of the sequence if the condition is True.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example1&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;subjects = ['Maths','Science','Physics']
subjects.append('Chemistry')
print(subjects)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Explanation:&lt;/strong&gt;&lt;br&gt;
Statement 1:&lt;br&gt;
subjects = ['Maths','Science','Physics']&lt;br&gt;
Statement 2:&lt;br&gt;
append functions is being used in Statement 2 So, 'Chemistry' will be added at the end of the sequence.&lt;br&gt;
&lt;strong&gt;Final Output:&lt;/strong&gt;&lt;br&gt;
['Maths', 'Science', 'Physics', 'Chemistry']&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example 2&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;list1=['Mathematics', 'AI', 'Science','Political Science']
list2=[]
for i in list1:
 if 'a' in i:
    list2.append(i)
print(list2) 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Explanation:&lt;/strong&gt;&lt;br&gt;
Iteration1:&lt;br&gt;
"a" in 'Mathematics' , condition becomes True and it will be added at the end of list2.&lt;br&gt;
Iteration1:&lt;br&gt;
"a" in 'AI' , condition becomes FALSE and it will not be added in sequence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final output&lt;/strong&gt;&lt;br&gt;
['Mathematics', 'Political Science']&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>python</category>
      <category>append</category>
    </item>
    <item>
      <title>Nested loop practice.</title>
      <dc:creator>Keshav Jindal </dc:creator>
      <pubDate>Sat, 10 Sep 2022 12:22:02 +0000</pubDate>
      <link>https://dev.to/jindalkeshav82/shortcut-to-solve-questions-related-to-for-loop-34ci</link>
      <guid>https://dev.to/jindalkeshav82/shortcut-to-solve-questions-related-to-for-loop-34ci</guid>
      <description>&lt;p&gt;&lt;strong&gt;1.Introduction to &lt;code&gt;For loop&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;
For loop is used to iterate over a sequence. With the help of &lt;code&gt;for loop&lt;/code&gt; all the items present in the sequence are accessed one by one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.Trick to solve nested &lt;code&gt;loop&lt;/code&gt;questions easily&lt;/strong&gt;&lt;br&gt;
Let the first &lt;code&gt;loop&lt;/code&gt;condition be Days and the other &lt;code&gt;loop&lt;/code&gt;conditions be sessions. Linking this analogy to the daily life of a student- a student has to sit in all sessions every day.&lt;/p&gt;

&lt;p&gt;For example-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for i in range(3):
 for j in range(6):
   print(j, end=' ')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;TRICK TO SOLVE ABOVE QUESTION&lt;/strong&gt;:&lt;br&gt;
Let i = Days(Monday, Tuesday, etc..) &amp;amp;&lt;br&gt;
j = Sessions(Mathematics, Science, etc..)&lt;br&gt;
range for i = (0,1,2)&lt;br&gt;
range for j = (0,1,2,3,4,5) &lt;br&gt;
Iteration 1:&lt;/p&gt;

&lt;p&gt;i=0, the condition becomes True and the &lt;code&gt;loop&lt;/code&gt;will be connected and the day will be Monday. There are 6 sessions in j, and a student must sit in all sessions daily.&lt;br&gt;
So, the result will be: 0 1 2 3 4 5&lt;br&gt;
Iterations 2:&lt;/p&gt;

&lt;p&gt;i = 2, the condition becomes True and the day will be Wednesday. Result: 0 1 2 3 4 5 &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final Output:&lt;/strong&gt;&lt;br&gt;
0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 &lt;/p&gt;

&lt;p&gt;Example 2:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;my_string =['Mathematics','Science','History']
for i in range(len(my_string)):
  for x in range(4):
    print(x, end=(' '))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Explanation:&lt;/strong&gt;&lt;br&gt;
Iteration 1:&lt;/p&gt;

&lt;p&gt;Range for i = (0,1,2)&lt;br&gt;
Range for x = (0,1,2,3)&lt;br&gt;
i = 0, Day 1 i.e Monday, we have to sit in all sessions So, the output becomes: 0 1 2 3&lt;br&gt;
Iteration 3:&lt;/p&gt;

&lt;p&gt;i = 2, Day 3 is Wednesday and after sitting in all sessions, output comes out to be: 0 1 2 3.&lt;br&gt;
&lt;strong&gt;Final output&lt;/strong&gt;&lt;br&gt;
0 1 2 3 0 1 2 3 0 1 2 3&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>python</category>
      <category>loop</category>
    </item>
  </channel>
</rss>
