<?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: Mohammed Sharaqi</title>
    <description>The latest articles on DEV Community by Mohammed Sharaqi (@mosharaqi).</description>
    <link>https://dev.to/mosharaqi</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%2F524530%2Fff7456e2-cbaa-4c17-897d-ea02e7a39004.jpg</url>
      <title>DEV Community: Mohammed Sharaqi</title>
      <link>https://dev.to/mosharaqi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mosharaqi"/>
    <language>en</language>
    <item>
      <title>Graphing CLT-Central Limit Theorem- by using Pandas and Matplotlib</title>
      <dc:creator>Mohammed Sharaqi</dc:creator>
      <pubDate>Tue, 17 Feb 2026 17:12:18 +0000</pubDate>
      <link>https://dev.to/mosharaqi/graphing-clt-central-limit-theorem-by-using-pandas-and-matplotlib-585e</link>
      <guid>https://dev.to/mosharaqi/graphing-clt-central-limit-theorem-by-using-pandas-and-matplotlib-585e</guid>
      <description>&lt;p&gt;Statistics cares about the central tendency and to answer the question that says, "How is our data going to be distributed?" You need to have an idea about the center, how each value varies from the center, and the outliers. In addition, to get information about the center, you have to focus on three factors: mean, median, and mode. Mean is &lt;strong&gt;a single numerical figure that represents the center of an entire distribution of data&lt;/strong&gt;. The median is &lt;strong&gt;the middle value in a set of data. Mode is the value that is most repeated in the set of data.&lt;/strong&gt; However, knowing the center is not the only case to finalize your thought about what the shape of our distribution is going to be; so besides having an idea about the center, we need to get two additional ideas that tell us the kurtosis, the &lt;strong&gt;"tailedness,"&lt;/strong&gt; or the peak of the distribution. It tells you how much of your data sits in the tails versus the center, and skewness describes the &lt;strong&gt;asymmetry&lt;/strong&gt; of the distribution; in other words, it tells you which way the "tail" of the graph is leaning.&lt;/p&gt;

&lt;p&gt;if you got lost, here is the questions you can answer once you have a these three values:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Where is it?&lt;/strong&gt; (Mean)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Is it lopsided?&lt;/strong&gt; (Skewness)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Is it pointy or flat?&lt;/strong&gt; (Kurtosis)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  But what about the second momentum or variance?
&lt;/h3&gt;

&lt;p&gt;well, variance is good to understand a crucial information about your graph, it basically tells you &lt;strong&gt;How much is the crowd huddling or spreading out?&lt;/strong&gt; this why we need to calculate the Standard deviation and variance to tell us how each individual are spred out or how each value is far away from the center. &lt;strong&gt;While:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Low Variance:&lt;/strong&gt; The data points are very close to the mean. The graph looks like a tall, narrow spike.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;High Variance:&lt;/strong&gt; The data points are spread far from the mean. The graph looks wide and stretched out.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&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%2Fcfolwwglel5t5dr9061c.png" 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%2Fcfolwwglel5t5dr9061c.png" alt=" " width="800" height="396"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Congrats, dear reader, I’ve deceived you by giving you this information to describe a unique distribution while you can only find this distribution only in the textbook; to be honest with you, my faculty has said that “it’s hard to get normal distribution [easily] in real life.” This is why I have to introduce you to the Central Limit Theory as a method to overcome real-life situations and somehow force your problem to be normally distributed so you can get the advantages of normally distributed graphs.&lt;/p&gt;

&lt;p&gt;💡&lt;br&gt;
Not all population are distributed normally; But with CLT we can have N number samples that their means or “sample mean” is equal to population mean and they’re normally distributed.&lt;/p&gt;

&lt;h2&gt;
  
  
  So, What is the idea of CLT?
&lt;/h2&gt;

&lt;p&gt;Imagine you have a population; it doesn’t matter either if it’s normally distributed or not, and you know the mean beside its standard deviation. Then, you start having N numbers of samples from your population; After that, you can calculate their mean, and you’ll notice something weird. &lt;strong&gt;&lt;em&gt;The mean of the samples is going to be the same as the mean of the population.&lt;/em&gt;&lt;/strong&gt; And more other properties below the image:&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%2F6rb8b9ijd9s9xwqom0ov.png" 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%2F6rb8b9ijd9s9xwqom0ov.png" alt=" " width="624" height="210"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your sample mean is equal to your population mean.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;But please note that we’re speaking about sample mean, not population mean. We’ll use this idea when we’re going to calculate the probability of the problems. The formula is changing depend on whether you’re dealing with mean or sample mean.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The standard deviation of the sample means will be smaller than the standard deviation of the population, and it will be equal to the population standard deviation divided by the square root of the sample size. And you have to specify it by saying “Standard Error”.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;$$\text{Standard Error (SE)} = \frac{σ} { \sqrt{n}}$$&lt;/p&gt;

&lt;p&gt;Also there are some condition for this theory:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Now, for the central limit theorem to work the way we expect, there are a few conditions to consider:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Sufficiently large sample size:&lt;/strong&gt; The sample size has to be large enough. A sample size of 30 or more is usually considered good. But if the population we’re sampling from is skewed or has many outliers, we may need a bigger sample to see that nice, bell-shaped curve show up.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Independent and Identically Distributed (i.i.d.) samples:&lt;/strong&gt; The samples we take need to be independent and identically distributed(i.i.d.). This means each sample is chosen randomly and comes from the same population. If that’s not true, then the results may not be reliable.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Finite population variance&lt;/strong&gt;: The population we’re sampling must have a finite variance. If the data comes from a distribution with infinite variance, like the &lt;strong&gt;Cauchy&lt;/strong&gt; &lt;strong&gt;distribution&lt;/strong&gt;, the CLT won’t apply to those.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.datacamp.com/tutorial/central-limit-theorem" rel="noopener noreferrer"&gt;the source&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;




&lt;p&gt;&lt;strong&gt;&lt;em&gt;Example, The following example illustrates these two properties. Suppose a professor gave an 8-point quiz to a small class of four students. The results of the quiz were 2, 6, 4, and 8. For the sake of discussion, assume that the four students constitute the population.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;before solving this question, here’s the algorithm that i’m going to follow to show that &lt;strong&gt;&lt;em&gt;the sample mean is equal to your population mean.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;finding the &lt;strong&gt;mean&lt;/strong&gt; and the &lt;strong&gt;STD&lt;/strong&gt; of the population.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;take samples with replacement from my population and calculate the mean to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;proof that the sample mean is equal to the population’s mean&lt;/li&gt;
&lt;li&gt;the sample mean is go&lt;a href="https://www.datacamp.com/tutorial/cauchy-distribution" rel="noopener noreferrer"&gt;i&lt;/a&gt;ng to be distributed as normal although the population dataset hasn’t distributed as normal&lt;/li&gt;
&lt;/ol&gt;


&lt;/li&gt;

&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;The mean of the population is&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;$$\mu = \frac{\sum X}{N} = \frac{20}{4} = 5$$&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;and STD is&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Here is a Step-by-Step Arithmetic for getting STD:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Calculate Deviations:&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* $$2 - 5 = -3$$

* $$4 - 5 = -1$$

* $$6 - 5 = 1$$

* $$8 - 5 = 3$$
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Square the Deviations:&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* $$(-3)^2 = 9$$

* $$(-1)^2 = 1$$

* $$(1)^2 = 1$$

* $$(3)^2 = 9$$
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Sum the Results:&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;$$SS = 9 + 1 + 1 + 9 = 20$$&lt;/p&gt;

&lt;p&gt;This is the graph that shows our data; look at how our data is not normally distribution.&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%2Ftcw72lr7ukm8d08hruzi.png" 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%2Ftcw72lr7ukm8d08hruzi.png" alt=" " width="800" height="407"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;let us take samples from the population, and remember, our sample mean data is going to be normal as much as our N is getting bigger and bigger. Our samples is going to be a set of two different numbers and we’re going to have the mean of each set:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Sample&lt;/th&gt;
&lt;th&gt;Mean (\bar{x})&lt;/th&gt;
&lt;th&gt;Sample&lt;/th&gt;
&lt;th&gt;Mean (\bar{x})&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2, 2&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;6, 2&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2, 4&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;6, 4&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2, 6&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;6, 6&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2, 8&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;6, 8&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4, 2&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;8, 2&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4, 4&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;8, 4&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4, 6&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;8, 6&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4, 8&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;8, 8&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A frequency distribution of sample means is as follows:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;X&lt;/th&gt;
&lt;th&gt;f&lt;/th&gt;
&lt;th&gt;f⋅X&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2×1=2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3×2=6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;4×3=12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;5×4=20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;6×3=18&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;7×2=14&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;8×1=8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;∑f=16&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;∑(f⋅X)=80&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;So, the mean is x¯=80/16=5&lt;/p&gt;

&lt;p&gt;and this is the distribution of the mean sample, and as you see it’s approaching the normal distribution.&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%2F4jvjq889cch284q8vzru.png" 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%2F4jvjq889cch284q8vzru.png" alt=" " width="800" height="423"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Let’s do some python stuff
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Before we can start, you can find the project here on&lt;/em&gt;&lt;/strong&gt; &lt;a href="https://www.kaggle.com/code/mo7ammedsharaki/proofing-clt-central-limit-theorem-by-using-panda" rel="noopener noreferrer"&gt;&lt;strong&gt;&lt;em&gt;Kaggle&lt;/em&gt;&lt;/strong&gt;&lt;/a&gt; &lt;strong&gt;&lt;em&gt;(it includes the CSV file and the code there).&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Let’s study a new case to get a better understanding. What if we increase the number of samples? Like, instead of the scores being {2,4,6,8}, let’s make it {2,4,6,8,10,12} so we can have three numbers in each sample. For pairing off the values, we need to ask ChatGPT to do it because we are going to see that the number of samples is going to be 216 sets or samples.&lt;/p&gt;

&lt;p&gt;here is the output:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Starting with 2&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Starting with 4&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Starting with 6&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;(2, 2, 2) (2, 2, 4) (2, 2, 6) (2, 2, 8) (2, 2, 10) (2, 2, 12)&lt;/td&gt;
&lt;td&gt;(4, 2, 2) (4, 2, 4) (4, 2, 6) (4, 2, 8) (4, 2, 10) (4, 2, 12)&lt;/td&gt;
&lt;td&gt;(6, 2, 2) (6, 2, 4) (6, 2, 6) (6, 2, 8) (6, 2, 10) (6, 2, 12)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;(2, 4, 2) (2, 4, 4) (2, 4, 6) (2, 4, 8) (2, 4, 10) (2, 4, 12)&lt;/td&gt;
&lt;td&gt;(4, 4, 2) (4, 4, 4) (4, 4, 6) (4, 4, 8) (4, 4, 10) (4, 4, 12)&lt;/td&gt;
&lt;td&gt;(6, 4, 2) (6, 4, 4) (6, 4, 6) (6, 4, 8) (6, 4, 10) (6, 4, 12)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;(2, 6, 2) (2, 6, 4) (2, 6, 6) (2, 6, 8) (2, 6, 10) (2, 6, 12)&lt;/td&gt;
&lt;td&gt;(4, 6, 2) (4, 6, 4) (4, 6, 6) (4, 6, 8) (4, 6, 10) (4, 6, 12)&lt;/td&gt;
&lt;td&gt;(6, 6, 2) (6, 6, 4) (6, 6, 6) (6, 6, 8) (6, 6, 10) (6, 6, 12)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;(2, 8, 2) (2, 8, 4) (2, 8, 6) (2, 8, 8) (2, 8, 10) (2, 8, 12)&lt;/td&gt;
&lt;td&gt;(4, 8, 2) (4, 8, 4) (4, 8, 6) (4, 8, 8) (4, 8, 10) (4, 8, 12)&lt;/td&gt;
&lt;td&gt;(6, 8, 2) (6, 8, 4) (6, 8, 6) (6, 8, 8) (6, 8, 10) (6, 8, 12)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;(2, 10, 2) (2, 10, 4) (2, 10, 6) (2, 10, 8) (2, 10, 10) (2, 10, 12)&lt;/td&gt;
&lt;td&gt;(4, 10, 2) (4, 10, 4) (4, 10, 6) (4, 10, 8) (4, 10, 10) (4, 10, 12)&lt;/td&gt;
&lt;td&gt;(6, 10, 2) (6, 10, 4) (6, 10, 6) (6, 10, 8) (6, 10, 10) (6, 10, 12)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;(2, 12, 2) (2, 12, 4) (2, 12, 6) (2, 12, 8) (2, 12, 10) (2, 12, 12)&lt;/td&gt;
&lt;td&gt;(4, 12, 2) (4, 12, 4) (4, 12, 6) (4, 12, 8) (4, 12, 10) (4, 12, 12)&lt;/td&gt;
&lt;td&gt;(6, 12, 2) (6, 12, 4) (6, 12, 6) (6, 12, 8) (6, 12, 10) (6, 12, 12)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Starting with 8&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Starting with 10&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Starting with 12&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;(8, 2, 2) (8, 2, 4) (8, 2, 6) (8, 2, 8) (8, 2, 10) (8, 2, 12)&lt;/td&gt;
&lt;td&gt;(10, 2, 2) (10, 2, 4) (10, 2, 6) (10, 2, 8) (10, 2, 10) (10, 2, 12)&lt;/td&gt;
&lt;td&gt;(12, 2, 2) (12, 2, 4) (12, 2, 6) (12, 2, 8) (12, 2, 10) (12, 2, 12)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;(8, 4, 2) (8, 4, 4) (8, 4, 6) (8, 4, 8) (8, 4, 10) (8, 4, 12)&lt;/td&gt;
&lt;td&gt;(10, 4, 2) (10, 4, 4) (10, 4, 6) (10, 4, 8) (10, 4, 10) (10, 4, 12)&lt;/td&gt;
&lt;td&gt;(12, 4, 2) (12, 4, 4) (12, 4, 6) (12, 4, 8) (12, 4, 10) (12, 4, 12)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;(8, 6, 2) (8, 6, 4) (8, 6, 6) (8, 6, 8) (8, 6, 10) (8, 6, 12)&lt;/td&gt;
&lt;td&gt;(10, 6, 2) (10, 6, 4) (10, 6, 6) (10, 6, 8) (10, 6, 10) (10, 6, 12)&lt;/td&gt;
&lt;td&gt;(12, 6, 2) (12, 6, 4) (12, 6, 6) (12, 6, 8) (12, 6, 10) (12, 6, 12)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;(8, 8, 2) (8, 8, 4) (8, 8, 6) (8, 8, 8) (8, 8, 10) (8, 8, 12)&lt;/td&gt;
&lt;td&gt;(10, 8, 2) (10, 8, 4) (10, 8, 6) (10, 8, 8) (10, 8, 10) (10, 8, 12)&lt;/td&gt;
&lt;td&gt;(12, 8, 2) (12, 8, 4) (12, 8, 6) (12, 8, 8) (12, 8, 10) (12, 8, 12)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;(8, 10, 2) (8, 10, 4) (8, 10, 6) (8, 10, 8) (8, 10, 10) (8, 10, 12)&lt;/td&gt;
&lt;td&gt;(10, 10, 2) (10, 10, 4) (10, 10, 6) (10, 10, 8) (10, 10, 10) (10, 10, 12)&lt;/td&gt;
&lt;td&gt;(12, 10, 2) (12, 10, 4) (12, 10, 6) (12, 10, 8) (12, 10, 10) (12, 10, 12)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;(8, 12, 2) (8, 12, 4) (8, 12, 6) (8, 12, 8) (8, 12, 10) (8, 12, 12)&lt;/td&gt;
&lt;td&gt;(10, 12, 2) (10, 12, 4) (10, 12, 6) (10, 12, 8) (10, 12, 10) (10, 12, 12)&lt;/td&gt;
&lt;td&gt;(12, 12, 2) (12, 12, 4) (12, 12, 6) (12, 12, 8) (12, 12, 10) (12, 12, 12)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Let’s importing Pandas and Matplotlib&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pandas&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt; &lt;span class="c1"&gt;#importing pandas
&lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;matplotlib.pyplot&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;plt&lt;/span&gt; &lt;span class="c1"&gt;#importing matplotlib
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then we can access the &lt;code&gt;samples_and_means.csv&lt;/code&gt; from Kaggle and use it to graph the values.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_csv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/kaggle/input/sample-mean-of-the-our-samples/samples_and_means.csv&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DataFrame&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# Store the series and count the values and reset the index to access it in graphing steps, also we have to sort the value by the mean.
&lt;/span&gt;&lt;span class="n"&gt;counts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Mean&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;value_counts&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;reset_index&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;sort_values&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Mean&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;counts&lt;/span&gt;
&lt;span class="c1"&gt;# Visualize using the index and values
&lt;/span&gt;&lt;span class="n"&gt;counts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;plot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;kind&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bar&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Mean&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;count&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;salmon&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;xlabel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Category&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ylabel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Frequency&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;show&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And this the output here.&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%2Fo6nn04npbfzv5ymsyjqj.png" 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%2Fo6nn04npbfzv5ymsyjqj.png" alt=" " width="640" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thought.
&lt;/h2&gt;

&lt;p&gt;We can see that the graph is becoming normally distributed and since we’ve reached this conclusion, so solving problems become more easier. Also here why it’s important in statistics field:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Predictability from Chaos:&lt;/strong&gt; No matter how "weird" or skewed your original population distribution is, the distribution of the &lt;strong&gt;sample means&lt;/strong&gt; will always pull toward a &lt;strong&gt;Normal Distribution&lt;/strong&gt; (a bell curve) as your sample size (n) increases.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The Center Holds:&lt;/strong&gt; The mean of all your sample means will be exactly equal to the original population mean.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Reduced Risk:&lt;/strong&gt; As you take larger samples, the spread (Standard Error) of those sample means gets smaller, making your estimates much more precise.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Before you go, i’ve built this series to share my journey in learning data science so you may subscribe if you’re interesting to know my journey. thanks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://mosharaqi.hashnode.dev/series/data-science" rel="noopener noreferrer"&gt;https://mosharaqi.hashnode.dev/series/data-science&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you think i’m mistaken please don’t hesitate to reach me out on my LinkedIn&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/mosharaqi/" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/mosharaqi&lt;/a&gt;&lt;/p&gt;

</description>
      <category>statistics</category>
      <category>datascience</category>
      <category>pandas</category>
    </item>
    <item>
      <title>first day- while I trying to learn data science.</title>
      <dc:creator>Mohammed Sharaqi</dc:creator>
      <pubDate>Mon, 10 Jul 2023 02:47:06 +0000</pubDate>
      <link>https://dev.to/mosharaqi/first-day-while-i-trying-to-learn-data-science-14ho</link>
      <guid>https://dev.to/mosharaqi/first-day-while-i-trying-to-learn-data-science-14ho</guid>
      <description>&lt;p&gt;this article part from my journey to learn data science, I hope gain knowledge by end this journey. i wish get job, too&lt;br&gt;
&lt;strong&gt;I don't have any idea about what data science except is that it's a programming field.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;let me write down what I've gotten today, Today I've learned about what is data science, along with, the difference between a data scientist, data engineer, data analyst and machine learning scientist.&lt;/p&gt;

&lt;p&gt;I used to think these several work job titles are the same and there are no differences in real life, but you can give these titles another try.&lt;/p&gt;

&lt;h2&gt;
  
  
  Data Engineer Job
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Information architects&lt;/li&gt;
&lt;li&gt;Build data pipelines and storage solutions&lt;/li&gt;
&lt;li&gt;Maintain data access&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Data engineering tools
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;SQL&lt;/strong&gt;
:To store and organize data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Java, Scala, or Python&lt;/strong&gt;
:Programming languages to process data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shell Command line&lt;/strong&gt;
:to automate and run tasks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloud computing&lt;/strong&gt;
:AWS, Azure, Google Cloud Platform&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Data analyst Job
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Perform simpler analyses that describe data&lt;/li&gt;
&lt;li&gt;Create reports and dashboards to summarize data Clean data for analysis&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Data analyst tools
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;SQL&lt;/strong&gt;
:Retrieve and aggregate data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spreadsheets&lt;/strong&gt; (Excel or Google Sheets)
:Simple analysis&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BI tools&lt;/strong&gt; (Tableau, Power BI, Looker)
:Dashboards and visualizations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;May have&lt;/strong&gt;: Python or R
:Clean and analyze data&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Data scientist Job
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Versed in statistical methods&lt;/li&gt;
&lt;li&gt;Run experiments and analyses for insights&lt;/li&gt;
&lt;li&gt;Traditional machine learning&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Data scientist tools
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;SQL&lt;/strong&gt;&lt;br&gt;
:Retrieve and aggregate data&lt;br&gt;
&lt;strong&gt;Python and/or R&lt;/strong&gt;&lt;br&gt;
:Data science libraries, e.g., &lt;code&gt;pandas&lt;/code&gt;(&lt;em&gt;Python&lt;/em&gt;) and &lt;code&gt;tidyverse&lt;/code&gt;(&lt;em&gt;R&lt;/em&gt;)&lt;/p&gt;

&lt;p&gt;this image below from the data camp (platform that I've learned with)&lt;br&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%2F183bege7kftvn86nxdjv.png" 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%2F183bege7kftvn86nxdjv.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;this article the 1st of my journey to learn data science beside to help other people by share my journey, until now I've didn't face any problem or issues. but one day we will get it. &lt;u&gt;this my journey to become software engineer or scientist (I've not chosen, yet)&lt;/u&gt;&lt;/p&gt;

</description>
      <category>datascience</category>
    </item>
    <item>
      <title>while you learn coding, how keep what you learning</title>
      <dc:creator>Mohammed Sharaqi</dc:creator>
      <pubDate>Thu, 02 Jun 2022 12:16:07 +0000</pubDate>
      <link>https://dev.to/mosharaqi/while-you-learn-coding-how-keep-what-you-learning-48lg</link>
      <guid>https://dev.to/mosharaqi/while-you-learn-coding-how-keep-what-you-learning-48lg</guid>
      <description>&lt;p&gt;while you learning you might be at a critical point regarding how to keep what you learned yesterday and learn a new Topic, without returning to the last videos and learning again.&lt;br&gt;
that 4 steps, hope to help you.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;problem-solving &lt;/li&gt;
&lt;li&gt;create projects&lt;/li&gt;
&lt;li&gt;read articles &lt;/li&gt;
&lt;li&gt;community&lt;/li&gt;
&lt;li&gt;share knowledge&lt;/li&gt;
&lt;/ol&gt;


&lt;h2&gt;
  
  
  problem-solving
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;A problem is a chance for you to do your best.&lt;/p&gt;

&lt;p&gt;~Duke Ellington&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;problem-solving most way to improve your thinking skill in coding especially you thinking true and fast.&lt;br&gt;
not thinking, but technical side too that's make solving problems most way to keep what you learn.&lt;br&gt;
problem-solving maybe is hard when you start solving, but nobody born expert.&lt;br&gt;
you should try solving, steps by steps many times don't give up.&lt;br&gt;
You're supposed to solve the easiest problem for the hardest problem, that's like stairs.&lt;/p&gt;

&lt;p&gt;remember, if problem is hard that's mean you in right way.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;We can not solve our problems with the same level of thinking that created them&lt;/p&gt;

&lt;p&gt;~Albert Einstein&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  create projects
&lt;/h2&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%2Fydo8037fdnu80t7am1tp.png" 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%2Fydo8037fdnu80t7am1tp.png" alt=" " width="736" height="573"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;most people when I say create projects think to create big projects to help more people.&lt;br&gt;
that has bits wrong. because you might create a project that helps just you or help many peoples.&lt;/p&gt;

&lt;p&gt;this image explain what mean behind doing.&lt;br&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%2F1ccv3p7cmc47y0dqna0t.png" 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%2F1ccv3p7cmc47y0dqna0t.png" alt=" " width="617" height="680"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1490296023767523328-171" src="https://platform.twitter.com/embed/Tweet.html?id=1490296023767523328"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1490296023767523328-171');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1490296023767523328&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;h3&gt;
  
  
  ok, how to get idea to creating projects?
&lt;/h3&gt;

&lt;p&gt;I remember first project I created, is tool help me to search in text file with single function. that's made me happy regardless of few lines But it's help me many of time.&lt;br&gt;
another programmers made small ATM.&lt;/p&gt;

&lt;p&gt;This steps help you to get ideas.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Cloning is a real project.&lt;/li&gt;
&lt;li&gt;existing tutorials online.&lt;/li&gt;
&lt;li&gt;ask your monitor, he can help you to find Ideas.&lt;/li&gt;
&lt;li&gt;Don't forget to let the environment inspire you.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1405880383988809737-336" src="https://platform.twitter.com/embed/Tweet.html?id=1405880383988809737"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1405880383988809737-336');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1405880383988809737&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;we learn by doing, not by learning how to do&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  read articles
&lt;/h2&gt;

&lt;p&gt;when you learn you will face two ways to learn.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;learn from videos (that's included Youtube channels, lectures like MIT opensource, EDX, Coursera, and Udemy.) 
this video can help you 
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/fRo26gpgvV4"&gt;
&lt;/iframe&gt;
&lt;/li&gt;
&lt;li&gt;learn from reading (that's included books, articles, white papers, and documents)&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;I'm not here to compare learn from videos and learn from reading&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;while you learn special topics, read this topic on, &lt;a href="https://www.w3schools.com/" rel="noopener noreferrer"&gt;W3school&lt;/a&gt;&lt;br&gt;
or another sites. that made you more understand topic, more knowledge.&lt;br&gt;
&lt;a href="https://www.freecodecamp.org/news/how-to-read-your-way-to-becoming-a-better-developer-b6432fa5bc0c/" rel="noopener noreferrer"&gt;freecodecamp how to read to become a better developer&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  community
&lt;/h2&gt;

&lt;p&gt;You can receive help from the community through tweets and posts while you're still learning.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;to motivate yourself, that can help you&lt;/li&gt;
&lt;li&gt;The benefits are both cognitive and emotional.&lt;/li&gt;
&lt;li&gt;Improve Confidence&lt;/li&gt;
&lt;li&gt;Increase Achievement and Stay Active in contribute in Group Projects.&lt;a href="https://habitatbroward.org/blog/top-8-benefits-of-community-service-for-students/" rel="noopener noreferrer"&gt;source&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I love this quote&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“I alone cannot change the world, but I can cast a stone across the waters to create many ripples.” – Mother Teresa&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1530586208031621120-431" src="https://platform.twitter.com/embed/Tweet.html?id=1530586208031621120"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1530586208031621120-431');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1530586208031621120&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;h3&gt;
  
  
  how to get into community?
&lt;/h3&gt;

&lt;p&gt;from social media&lt;br&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%2Fy17jkkyfi1tnc4yuglu3.png" 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%2Fy17jkkyfi1tnc4yuglu3.png" alt=" " width="400" height="400"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  sharing knowledge
&lt;/h2&gt;

&lt;p&gt;Sharing knowledge helps you preserve what you learn and help others learn what they don't know.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Knowledge is power. Sharing knowledge is the key to unlocking that power.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Ok, why you should sharing knowledge?
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.freecodecamp.org/news/why-you-should-share-your-knowledge-as-a-developer/" rel="noopener noreferrer"&gt;this article can help you &lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  where you can share knowledge
&lt;/h3&gt;

&lt;p&gt;many tools help you to share knowledge like social media posts or threads &lt;br&gt;
And once you've done some writing, you can apply to publications like hashnode's and share your knowledge with the large community they've built as well.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>best way to learn coding? learn from youtube, books, udemy, and offline?</title>
      <dc:creator>Mohammed Sharaqi</dc:creator>
      <pubDate>Mon, 16 May 2022 11:31:40 +0000</pubDate>
      <link>https://dev.to/mosharaqi/best-way-to-learn-coding-learn-from-youtube-books-udemy-and-offline-1jpc</link>
      <guid>https://dev.to/mosharaqi/best-way-to-learn-coding-learn-from-youtube-books-udemy-and-offline-1jpc</guid>
      <description>&lt;p&gt;when I started learning programming, I used youtube to learn programming.&lt;br&gt;
but now I learn from ink &amp;amp; paper. I Feel books like the ocean opposite youtube like a lake.🤣&lt;/p&gt;

&lt;h1&gt;
  
  
  what's your opinion?
&lt;/h1&gt;

</description>
      <category>discuss</category>
      <category>decision</category>
    </item>
    <item>
      <title>why you should start learn programming Today</title>
      <dc:creator>Mohammed Sharaqi</dc:creator>
      <pubDate>Thu, 12 May 2022 16:41:14 +0000</pubDate>
      <link>https://dev.to/mosharaqi/why-you-should-start-learn-programming-today-169i</link>
      <guid>https://dev.to/mosharaqi/why-you-should-start-learn-programming-today-169i</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Everybody in this country should learn how to program a computer… because it teaches you how to think ~ steve jobs&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;programming is the first/last choice for anybody who wants to build tools that make complicated things easy for everybody can use this tool or software.&lt;/p&gt;

&lt;p&gt;all paragraphs in this article are Personal reasons and some resources about why you should learn to program?&lt;/p&gt;

&lt;h2&gt;
  
  
  wait 🛑
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;I’m not your parents who say “you should learn something, or we will take a stand with you”.&lt;/p&gt;

&lt;p&gt;or not your teacher in glasses, saying " you should learn something to pass my exam".&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I’m just a person who learns to code. so to understand the reasons, complete this article to understand the point of my view and create your view. &lt;/p&gt;

&lt;h2&gt;
  
  
  hold on, wait 🚨
&lt;/h2&gt;

&lt;h3&gt;
  
  
  what the points we will talk about in the article
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;What is Technology?&lt;/li&gt;
&lt;li&gt;Technology with company and economies.&lt;/li&gt;
&lt;li&gt;change in the world based on Technology.&lt;/li&gt;
&lt;li&gt;easy to learn.&lt;/li&gt;
&lt;li&gt;salary.&lt;/li&gt;
&lt;li&gt;Express your creativity.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;easy to work.&lt;/p&gt;

&lt;p&gt;### why this point especially? 🥇&lt;br&gt;
 When I started writing this article I focused on economies, companies, and employment. I believe technology is inseparable from us.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In our lives, we are always connected with technology and we can’t disconnect or live without technology for 10 MIN. technology is everywhere.&lt;/p&gt;

&lt;p&gt;So, in 1988 came a new word is " ubiquitous computing " include :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;PC &lt;/li&gt;
&lt;li&gt;Laptop&lt;/li&gt;
&lt;li&gt;smartphone&lt;/li&gt;
&lt;li&gt;wearable devices&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;sensors (for example, on fleet management and pipeline components, lighting systems, appliances).&lt;/p&gt;

&lt;p&gt;## So, what is the Technology ? 🤔&lt;br&gt;
 Technology is the continually developing result of accumulated knowledge and application in all techniques, skills, methods, and processes used in industrial production and scientific research (Wikipedia)&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  What is the relation between technology and companies?
&lt;/h2&gt;

&lt;p&gt;if you start to think about companies you will see statistics in the world about the Top 10 companies in the world.&lt;br&gt;
fortunately, technology company ranked top 10 on the list.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Technology helps businesses in a number of ways that generally center on doing things bigger, better or faster than you could without technology. Different industries and companies rely on technology in different ways, but some benefits of technology in business include improved communication, optimized production, inventory management and financial record-keeping.&lt;br&gt;
&lt;a href="https://bizfluent.com/about-6320228-technology-important-business-.html" rel="noopener noreferrer"&gt;source&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;the first stage is when a person-businessman builds a company, that searches for a problem that he can solve. most problem you can solve it manually, but with programming you can solve it fast, better and more broadly. &lt;/p&gt;

&lt;p&gt;So In 2022 you can’t start a startup without IT. The top 10 companies are IT. &lt;br&gt;
IT company is the fastest business grow up in world. you can see image below  &lt;a href="https://www.visualcapitalist.com/the-biggest-companies-in-the-world-in-2021/" rel="noopener noreferrer"&gt;source&lt;/a&gt;&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%2Fbf0kth0pm7k68o3u7ldd.png" 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%2Fbf0kth0pm7k68o3u7ldd.png" alt="image.png" width="800" height="853"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;IT is a tightly integrated part of the business- the goals technology seeks to accomplish are often the same as the company itself. What it comes down to is that IT initiatives should align with business goals to provide the context and channels for organization-wide success.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;(Tech Blog) to &lt;a href="https://blog.trace3.com/blog/the-relationship-between-it-and-business/" rel="noopener noreferrer"&gt;read more&lt;/a&gt; about this topic&lt;/p&gt;




&lt;blockquote&gt;
&lt;p&gt;The worldwide information technology industry has almost reached $5 trillion in 2019&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://zippyelectrics.com/blog/technology-statistics/#hardware-and-gadgets-statistics" rel="noopener noreferrer"&gt;Technology statistics&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;36% of businesses plan to improve their IT operations performance due to the 2020 pandemic.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://zippyelectrics.com/blog/technology-statistics/#hardware-and-gadgets-statistics" rel="noopener noreferrer"&gt;Technology statistics&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The employment of software developers is projected to grow by up to 22% from 2019 to 2029.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://zippyelectrics.com/blog/technology-statistics/#hardware-and-gadgets-statistics" rel="noopener noreferrer"&gt;Technology statistics&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Technology company and economies 🧭
&lt;/h3&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%2Fukbixjr40gxs5lqcuivf.png" 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%2Fukbixjr40gxs5lqcuivf.png" alt="image.png" width="800" height="1580"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;the big revenue in the world it’s from Technology &lt;a href="https://www.visualcapitalist.com/the-top-100-companies-of-the-world-the-u-s-vs-everyone-else/" rel="noopener noreferrer"&gt;source&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  changing in the world based on Technology ⛑
&lt;/h2&gt;

&lt;p&gt;search on google about the future, and you notice many articles include AI. Therefore, the future is AI [ robots, automation, self-driving cars, self-delivery, drones ].&lt;/p&gt;

&lt;p&gt;If you open &lt;a href="https://medium.com/" rel="noopener noreferrer"&gt;Medium&lt;/a&gt; you will read several articles about the future and How AI will replace humans and everything will be automated, even jobs.&lt;/p&gt;

&lt;p&gt;I think you were reading about AI before. Now, we are on the outskirts of a new era, AI who is doing anything.&lt;/p&gt;

&lt;p&gt;There’s scope for greater automation in almost any business, across all industries. &lt;a href="https://www.businessnewsdaily.com/9835-automation-tech-workforce.html" rel="noopener noreferrer"&gt;source&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://360.here.com/the-timeline-of-automation" rel="noopener noreferrer"&gt;TimeLine&lt;/a&gt; of automation&lt;/p&gt;

&lt;h2&gt;
  
  
  easy to learn 🏫
&lt;/h2&gt;

&lt;p&gt;Programming can be learned at home, on your bed, without having to leave the house or going to school. There are so many courses available online to learn coding from scratch. literally without prior knowledge.&lt;/p&gt;

&lt;h3&gt;
  
  
  without degree 🎓
&lt;/h3&gt;

&lt;p&gt;There are many programmers working without degrees in IT, and you needn't be a graduate to get a job. You can learn online, like Udacity or FreeCodeCamp. Many people now have jobs without degrees. this story on &lt;a href="https://qr.ae/pv2OkC" rel="noopener noreferrer"&gt;quora&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/DThompsonDev/status/1513140993662496770?s=20&amp;amp;t=8e3Gm84N6ysSy1JAyeSYhQ" rel="noopener noreferrer"&gt;Dannytweet&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Recently, the job review site Glassdoor compiled a list of 15 different companies that don’t require job applicants to have college degrees. The list includes high-paying tech outlets like Apple, Google, and IBM, in addition to service-oriented companies like Costco, Starbucks, and Chipotle. &lt;a href="https://qz.com/work/1367191/apple-ibm-and-google-dont-require-a-college-degree/" rel="noopener noreferrer"&gt;source&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are uncomfortable because you believe a degree is important, you supposed to know “Scott Young” story, who learned MIT subjects in one year. 😍&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Over the next 12 months, I’m going to learn the entire 4-year MIT curriculum for computer science, without taking any classes. &lt;a href="https://www.scotthyoung.com/blog/myprojects/mit-challenge-2/" rel="noopener noreferrer"&gt;source&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  age not required 🔞
&lt;/h3&gt;

&lt;p&gt;Danny tweets about learning programming without caring about age, he says &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;" I worked with a PHENOMENAL woman who was 60 when she got her job as a frontend developer! "&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It's amazing when women started to learn programming 60 years ago. I remember when I start to learn to code that I can't meet people who learn to code bigger than 30, but I saw many people start learning when they passed 40 years old&lt;/p&gt;

&lt;p&gt;%[&lt;a href="https://twitter.com/DThompsonDev/status/1260384668526039040" rel="noopener noreferrer"&gt;https://twitter.com/DThompsonDev/status/1260384668526039040&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;Another programmer took a picture while he was learning Python at 52 years old.&lt;/p&gt;

&lt;p&gt;%[&lt;a href="https://twitter.com/mcgillmd921/status/1472008717692514307" rel="noopener noreferrer"&gt;https://twitter.com/mcgillmd921/status/1472008717692514307&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;I believe age is merely a number and not a rule. You can see from these stories if you need a certain age to learn programming&lt;/p&gt;

&lt;p&gt;%[&lt;a href="https://www.youtube.com/watch?v=jUofN4nWwZs" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=jUofN4nWwZs&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;%[&lt;a href="https://www.youtube.com/watch?v=nYYdmqauP6w" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=nYYdmqauP6w&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;%[&lt;a href="https://www.youtube.com/watch?v=Jeo3PHKdFQw" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=Jeo3PHKdFQw&lt;/a&gt;]&lt;/p&gt;

&lt;h2&gt;
  
  
  salary 💲
&lt;/h2&gt;

&lt;p&gt;hmm, now I writing this paragraph after end all article ( not joke) really I didn't write it because I don't believe in money I believe on value.&lt;br&gt;
but I should writing about this topic, don't worry, search on google about " highest salary in the world ". IT was ranked 16th on the list. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Average Salary: $142,530&lt;br&gt;
&lt;a href="https://wealthygorilla.com/highest-paying-careers/" rel="noopener noreferrer"&gt;source&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;National average salary: $106,119 per year &lt;br&gt;
&lt;a href="https://www.indeed.com/career-advice/finding-a-job/top-100-highest-paying-jobs" rel="noopener noreferrer"&gt;source&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Express your creativity 👻
&lt;/h2&gt;

&lt;p&gt;while you learning programming you can create projects, This is not a possibility, it is an obligatory task to understand what you learning, to improve your skill in programming.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;" Tutorials are great, but building projects is the best way to learn. Just go build stuff! "&lt;br&gt;
~ freecodecamp&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  easy to working ⚒
&lt;/h2&gt;

&lt;p&gt;in technology especially within the emerging startup culture – are well known for their flexibility and perks. you can work from anywhere. work as Freelancer, remotely working or employee.&lt;/p&gt;




&lt;h1&gt;
  
  
  last thing I had writing these words
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;thanks for complete this article &lt;/li&gt;
&lt;li&gt;all these paragraphs is my own point of my view, not required heard my own point of my view.
thanks&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>learn</category>
      <category>programming</category>
    </item>
    <item>
      <title>make telegram bot using python</title>
      <dc:creator>Mohammed Sharaqi</dc:creator>
      <pubDate>Fri, 08 Apr 2022 04:02:21 +0000</pubDate>
      <link>https://dev.to/mosharaqi/make-telegram-bot-using-python-3e1i</link>
      <guid>https://dev.to/mosharaqi/make-telegram-bot-using-python-3e1i</guid>
      <description>&lt;h2&gt;
  
  
  Hello everybody,😍
&lt;/h2&gt;

&lt;p&gt;let's make a bot telegram &lt;code&gt;python&lt;/code&gt;&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%2Fmnmdq7bh45r44os02yxn.gif" 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%2Fmnmdq7bh45r44os02yxn.gif" alt="heading" width="1440" height="810"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  what will I Make Today?
&lt;/h1&gt;

&lt;p&gt;python is used in this article to create a telegram bot that sends meme images.&lt;br&gt;
Additionally, the article will demonstrate how to integrate an inline keyboard to simplify the experience.&lt;br&gt;
Here is the table of contents.&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%2F4ibu1or9510z1pdeq79v.png" 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%2F4ibu1or9510z1pdeq79v.png" alt="table of content" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;First, if you don't have an account on the telegram you should make an account (it's very simple)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1&gt;
  
  
  telegram Side (steps)
&lt;/h1&gt;

&lt;p&gt;download telegram&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://desktop.telegram.org/" rel="noopener noreferrer"&gt;windows,linux&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://macos.telegram.org/" rel="noopener noreferrer"&gt;mac os&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://telegram.org/android" rel="noopener noreferrer"&gt;android&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://itunes.apple.com/app/telegram-messenger/id686449807" rel="noopener noreferrer"&gt;IPhone&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  log-in or register
&lt;/h3&gt;

&lt;p&gt;this video can help you to login or register&lt;br&gt;
(&lt;a href="https://www.youtube.com/watch?v=ie0j8Y2oPFs" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=ie0j8Y2oPFs&lt;/a&gt;)&lt;/p&gt;
&lt;h3&gt;
  
  
  make bot via &lt;code&gt;BothFather&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;after login at telegram&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;search about &lt;code&gt;BothFather&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&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%2F5w65o9he8q2fjxgus2rh.png" 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%2F5w65o9he8q2fjxgus2rh.png" alt=" " width="800" height="532"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;click start and choice &lt;code&gt;/newbot&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;It must end in &lt;code&gt;bot&lt;/code&gt;. Like this, for example: &lt;code&gt;memeBot&lt;/code&gt; or &lt;code&gt;meme_bot&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ol&gt;
&lt;li&gt;after you create a new bot telegram will send you &lt;code&gt;API_TOKEN&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;Please keep it and never give it to anyone&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h1&gt;
  
  
  Code Side
&lt;/h1&gt;
&lt;h3&gt;
  
  
  Create an environment
&lt;/h3&gt;

&lt;p&gt;(&lt;a href="https://www.youtube.com/watch?v=4jt9JPoIDpY" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=4jt9JPoIDpY&lt;/a&gt;)&lt;/p&gt;
&lt;h3&gt;
  
  
  install python library
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install python-telegram-bot
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;blockquote&gt;
&lt;p&gt;If you can't install this library check this video&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;(&lt;a href="https://www.youtube.com/watch?v=jnpC_Ib_lbc" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=jnpC_Ib_lbc&lt;/a&gt;)&lt;/p&gt;
&lt;h3&gt;
  
  
  write the first line to send hello world
&lt;/h3&gt;

&lt;p&gt;it's not line is some of lines 🤣 I didn't want to lie you, but this little lines of code😉&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from telegram.ext import Updater , CommandHandler,CallbackContext
from telegram.update import Update
API_TOKEN="put your API here"
updater = Updater(API_TOKEN, use_context=True)
def start(update: Update, context: CallbackContext):
    update.message.reply_text("hello world")

updater.dispatcher.add_handler(CommandHandler("start", start))
updater.start_polling()

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;API_TOKEN&lt;/code&gt; to control your bot and start to write code&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Updater&lt;/code&gt; Its purpose is to receive the updates from Telegram and to deliver them to said dispatcher. It also runs in a separate thread, so the user can interact with the bot, for example on the command line&lt;/p&gt;

&lt;p&gt;&lt;code&gt;update&lt;/code&gt; Object contains info on events occurred. &amp;amp; This object represents an incoming update.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;start&lt;/code&gt; this function to send hello world when user click start command&lt;/p&gt;

&lt;h3&gt;
  
  
  The output from the above code
&lt;/h3&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%2Fv4obxs2wi7iaxtmpe1fy.gif" 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%2Fv4obxs2wi7iaxtmpe1fy.gif" alt="bot recording from telegram" width="600" height="1066"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3 id="add function to read folder"&gt;add function to read meme folder&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import os
def readFolder():

    yourpath = "file path"
    lis=[]

    for root, dirs, files in os.walk(yourpath, topdown=False):
        for name in files:
            lis.append(os.path.join(root, name))
    return lis[1]
print(readFolder())
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  add &lt;code&gt;random function&lt;/code&gt; to select random image from folder
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import os
import random
def readFolder():

    random_=random.randint(0,total image)
    yourpath = "file path"
    lis=[]
    for root, dirs, files in os.walk(yourpath, topdown=False):
        for name in files:
            lis.append(os.path.join(root, name))
    return lis[random_]
print(readFolder())
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  meme side
&lt;/h1&gt;

&lt;p&gt;now we should add meme image I will make folder and make &lt;code&gt;function&lt;/code&gt; to read file from this folder.&lt;/p&gt;

&lt;h4&gt;
  
  
  1. open this link from google drive it have +3000 meme image &lt;a href="https://drive.google.com/drive/folders/1hCtc99IlCZMHEIdOrK-MzJaXrG5q81O0" rel="noopener noreferrer"&gt;click here&lt;/a&gt;
&lt;/h4&gt;

&lt;h4&gt;
  
  
  2. download it
&lt;/h4&gt;

&lt;h4&gt;
  
  
  3. go to this paragraph to add function to read folder
&lt;/h4&gt;

&lt;h3&gt;
  
  
  send meme via bot
&lt;/h3&gt;

&lt;p&gt;now we will writing code to send meme&lt;br&gt;
let's go😊&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import random
import os
from telegram.chataction import ChatAction
from time import sleep
from telegram.ext import Updater,CommandHandler,CallbackQueryHandler,CallbackContext,MessageHandler,Filters
from telegram.update import Update
from telegram.ext.updater import Updater

yourpath = "file path"
lis=[]

for root, dirs, files in os.walk(yourpath, topdown=False):
    for name in files:
        lis.append(os.path.join(root, name))
print("loading.....") 
API_KEY='API_KEY'

def start_commend(update: Update, context: CallbackContext):
    """
    message to handle any "Option [0-9]" Regrex.
    """
    context.bot.send_chat_action(chat_id=update.effective_chat.id, action=ChatAction.TYPING)
    chat_id = update.message.chat_id
    sleep(1)
    n=random.randint(0,3)
    file=lis[n]

    context.bot.send_photo(chat_id, photo=open(file, 'rb'))

def main():
    updaters=Updater(API_KEY,use_context=True)
    dp=updaters.dispatcher
    dp.add_handler(CommandHandler("start",start_commend))
    updaters.start_polling()
    updaters.idle()
main()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;context.bot.send_chat_action(chat_id=update.effective_chat.id, action=ChatAction.UPLOAD_PHOTO)

**line 22** to add action in chat "Uploading photo"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  add inlinekeyboard
&lt;/h1&gt;

&lt;p&gt;what the inline keyboard&lt;br&gt;
Sometimes, you would prefer not to send messages to the chat. When your user changes settings or flips through results, for example. When this happens, you can use &lt;code&gt;InlineKeyboards&lt;/code&gt; that are integrated directly into the messages they belong to.&lt;/p&gt;

&lt;p&gt;Instead, inline keyboards support buttons that work behind the scenes: callback buttons, URL buttons and switch to inline buttons.&lt;/p&gt;

&lt;p&gt;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%2F033417ohtsggcfel8b2w.png" 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%2F033417ohtsggcfel8b2w.png" alt="InlineKeyboards" width="720" height="826"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  add a Inline Keyboards function
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import random
import os
from telegram.chataction import ChatAction
from time import sleep
from telegram.ext import Updater,CommandHandler,CallbackQueryHandler,CallbackContext,MessageHandler,Filters
from telegram import ReplyKeyboardMarkup,ReplyKeyboardRemove
from telegram.update import Update
from telegram.ext.updater import Updater
from telegram.replykeyboardremove import ReplyKeyboardRemove

yourpath = file_path
lis=[]

for root, dirs, files in os.walk(yourpath, topdown=False):
    for name in files:
        lis.append(os.path.join(root, name))
print("loading.....") 
API_KEY=API_KEY


def start_commend(update: Update, context: CallbackContext):
    kd_layout=[["send generate meme"]]
    kbds = ReplyKeyboardMarkup(kd_layout)
    update.message.reply_text(text="""press on "send generate meme" """, reply_markup=kbds)
def echo(update: Update, context: CallbackContext):
    """
    message to handle any "Option [0-9]" Regrex.
    """
    context.bot.send_chat_action(chat_id=update.effective_chat.id, action=ChatAction.TYPING)
    chat_id = update.message.chat_id
    sleep(1)
    n=random.randint(0,3)
    sleep(1)
    file=lis[n]
    if update.message.text=="send generate meme":

        context.bot.send_photo(chat_id, photo=open(file, 'rb'))

def main():
    updaters=Updater(API_KEY,use_context=True)
    dp=updaters.dispatcher
    dp.add_handler(CommandHandler("start",start_commend))
    dp.add_handler(MessageHandler(Filters.regex(r"."), echo))
    updaters.start_polling()
    updaters.idle()
main()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;kd_layout&lt;/code&gt; this variable to add inline keyboard called &lt;code&gt;send generate meme&lt;/code&gt; to make another inline keyboard you can make array like &lt;code&gt;2D array&lt;/code&gt; in python&lt;/p&gt;

&lt;p&gt;index : 0, have first option index: 1 , have the second option in inline keyboard on this approach&lt;/p&gt;

&lt;p&gt;example : &lt;code&gt;kbd_layout = [['reaction', 'video'], ['image', 'joke'],['random']]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;result:&lt;br&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%2Fvy7jhmfegp0zkwx2hgcg.PNG" 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%2Fvy7jhmfegp0zkwx2hgcg.PNG" alt="inline keyboard" width="587" height="242"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  how to customize the board
&lt;/h3&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%2Fytn8g9dolazmvyx8jfub.png" 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%2Fytn8g9dolazmvyx8jfub.png" alt="how to customize the board" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;thanks for completing this article&lt;/p&gt;

</description>
      <category>bots</category>
      <category>telegram</category>
      <category>python</category>
    </item>
    <item>
      <title>Types of errors in C++ &amp; infographic summary</title>
      <dc:creator>Mohammed Sharaqi</dc:creator>
      <pubDate>Fri, 22 Oct 2021 12:45:48 +0000</pubDate>
      <link>https://dev.to/mosharaqi/types-of-errors-in-c-infographic-summary-14ld</link>
      <guid>https://dev.to/mosharaqi/types-of-errors-in-c-infographic-summary-14ld</guid>
      <description>&lt;p&gt;Hello everyone:)&lt;br&gt;&lt;br&gt;
&lt;strong&gt; i wish to have a nice Day.  &lt;/strong&gt;&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%2Fd90iwjb7s92yqfv4e5h9.gif" 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%2Fd90iwjb7s92yqfv4e5h9.gif" alt="have a great Day.gif" width="500" height="408"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  today I explain the errors in C++
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;''When a user performs an illegal operation, the program malfunctions as a result. Programming errors are often undetected until the program is compiled or executed. The errors may prevent the program from compiling or running. Consequently, you should eliminate the errors before you compile and run it.''&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
  
  
  Common errors can be grouped into the following categories
&lt;/h2&gt;
&lt;h3&gt;
  
  
  1. syntax Errors
&lt;/h3&gt;
&lt;h3&gt;
  
  
  2. Run-time Error
&lt;/h3&gt;
&lt;h3&gt;
  
  
  3. Linker Errors
&lt;/h3&gt;
&lt;h3&gt;
  
  
  4. Logical Errors
&lt;/h3&gt;
&lt;h3&gt;
  
  
  5. Semantic errors
&lt;/h3&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%2Fc8sf3m30kxtgkhttggcy.png" 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%2Fc8sf3m30kxtgkhttggcy.png" alt="type of error c++.png" width="800" height="266"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  1. syntax Errors
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;when you violate the rules of writing C/C++ syntax are known as syntax errors.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A compiler error indicates that something needs to be fixed before the code can be compiled. The compiler detects all of these errors, so they are known as compile-time errors.&lt;/p&gt;

&lt;p&gt;The most frequent syntax errors are: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Missing Parenthesis (})&lt;/li&gt;
&lt;li&gt;Printing the value of a variable without declaring it&lt;/li&gt;
&lt;li&gt;Missing semicolon like this:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;see the below code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;
using namespace std;

void main()
{
    int x = 10;
    int y = 15;

    cout &amp;lt;&amp;lt; " "&amp;lt;&amp;lt; (x, y) // semicolon missed
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Error
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;error: expected ';' before '}' token
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Run-time Errors
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Errors which occur during program execution(run-time) after successful compilation are called run-time errors.          &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Division by zero, also known as a division error, is one of the most common run-time errors.&lt;br&gt;
The compiler does not directly point to the line where the error occurs for these types of errors.&lt;br&gt;
Runtime errors are commonly called referred to as “bugs” and are often found during the debugging process before the software is released.&lt;/p&gt;

&lt;p&gt;See the following example for more information.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;
#include &amp;lt;bits/stdc++.h&amp;gt;
using namespace std;

void main()
{
    int n = 9, div = 0;

    // wrong logic number is divided by 0,
    // so this program abnormally terminates
    div = n/0;

   cout &amp;lt;&amp;lt; "result = "&amp;lt;&amp;lt; div;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;note:&lt;/p&gt;

&lt;p&gt;" These types of error are hard to find as the compiler does not point to the line at which the error occurs. "&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;### Error&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;warning: division by zero [-Wdiv-by-zero]
     div = n/0;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the given example, there is Division by zero error. This is an example of run-time error i.e errors occurring while running the program.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Linker Errors
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;These error occurs when after compilation we link the different object files with main’s object using Ctrl+F9 key(RUN)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;When an executable of the program cannot be generated, these errors are generated.&lt;br&gt;
Incorrect function prototyping, incorrect header files may be to blame.&lt;br&gt;&lt;br&gt;
Writing Main() instead of main() is one of the most common linker errors. &lt;/p&gt;

&lt;p&gt;See the following example for more information.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;bits/stdc++.h&amp;gt;
using namespace std;

void Main() // Here Main() should be main()
{
    int a = 10;
    cout &amp;lt;&amp;lt; " "&amp;lt;&amp;lt; a;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Logical Errors
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;When certain input values are given to a program during compilation and execution, desired output is not obtained.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Logic errors are errors that appear to be error-free but provide incorrect output. They are among the most common programming errors made by beginners. Errors like these depend solely on the logic of the programmer and are easily detected if we follow the path of execution and find out why the program follows that path.&lt;/p&gt;

&lt;h4&gt;
  
  
  like this meme
&lt;/h4&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%2Fj8al5qsfai4hfn26jhxa.png" 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%2Fj8al5qsfai4hfn26jhxa.png" alt="image.png" width="800" height="449"&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;#include &amp;lt;bits/stdc++.h&amp;gt;
using namespace std;
// C++ program to illustrate
// logical error
int main()
{
    int i = 0;

    // logical error : a semicolon after loop
    for(i = 0; i &amp;lt; 3; i++);
    {
    cout &amp;lt;&amp;lt; "loop ";
        continue;
    }
    return 0;
}


// This code is contributed by shivanisinghss2110.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Error
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;No output
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  5. Semantic errors
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;A semantic error occurs when the statements written in the program do not make sense to the compiler.&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;bits/stdc++.h&amp;gt;
using namespace std;
void main()
{
  int a, b, c;
  a + b = c; //semantic error
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Error
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;error: lvalue required as left operand of assignment
 a + b = c; //semantic error
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  this summary for you :)
&lt;/h1&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%2Ff4l8h38urlrc0spp7wsl.png" 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%2Ff4l8h38urlrc0spp7wsl.png" alt="Copy of Yellow Gray and Black Hand Drawn Process Infograhic.png" width="800" height="2000"&gt;&lt;/a&gt;&lt;br&gt;
Wishing you all the best 😊 &lt;/p&gt;

</description>
      <category>cpp</category>
      <category>errors</category>
      <category>programming</category>
      <category>c</category>
    </item>
  </channel>
</rss>
