<?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: Abu zubaer</title>
    <description>The latest articles on DEV Community by Abu zubaer (@shajib126).</description>
    <link>https://dev.to/shajib126</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%2F538928%2F62392426-1ebc-473c-a685-a3e716fcd06a.jpeg</url>
      <title>DEV Community: Abu zubaer</title>
      <link>https://dev.to/shajib126</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shajib126"/>
    <language>en</language>
    <item>
      <title>Lists/array</title>
      <dc:creator>Abu zubaer</dc:creator>
      <pubDate>Sun, 28 Feb 2021 15:10:46 +0000</pubDate>
      <link>https://dev.to/shajib126/lists-array-573i</link>
      <guid>https://dev.to/shajib126/lists-array-573i</guid>
      <description>&lt;p&gt;I am going to writing about the most used data structure list/array's. if you don't know what is a data structure, don't worry, I will explain.&lt;/p&gt;

&lt;p&gt;we know that on the computer we just play with data. we can not think without data. we can not do anything without data. &lt;br&gt;
watching movie? these are data. text is a data, image is data even number or string are also a data.&lt;/p&gt;

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

&lt;p&gt;The programmer's duty is to solve the problem by using data. to easily solve the problem programmers need to structure their data in many ways.&lt;br&gt;
list/array one of them.&lt;/p&gt;

&lt;p&gt;previously we had known, how to assign data in a variable.&lt;br&gt;
in python language we assign data &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VM9wi6cH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/teiwdiz9m7z8gv1qucfl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VM9wi6cH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/teiwdiz9m7z8gv1qucfl.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
like this.&lt;br&gt;
suppose we have a country variable and have to assign all the city's names under the country. what we're gonna do.&lt;/p&gt;

&lt;p&gt;in this situation, we have to use the list/array's structure.&lt;/p&gt;

&lt;p&gt;example:&lt;br&gt;
country = ['city1','city2','city3'] --&amp;gt; this is list's.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--C_vh4gK9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9jni5hnc8hw63tycefwa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--C_vh4gK9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9jni5hnc8hw63tycefwa.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;you can see in the picture the index starts at 0.&lt;br&gt;
remember this in the list count from zero 0.&lt;br&gt;
if you want to print city1 from the country list. you should define index number 0.&lt;/p&gt;

&lt;p&gt;print(country[0])&lt;/p&gt;

&lt;p&gt;the result will print city1.&lt;/p&gt;

&lt;p&gt;there have some methods on the list.&lt;br&gt;
 these are --&amp;gt; append,pop,reverse,sort etc.&lt;br&gt;
if you want to add another city to the country list you can do this by using the append method.&lt;br&gt;
example:&lt;br&gt;
 country.append('city4')&lt;br&gt;
print(country)&lt;/p&gt;

&lt;p&gt;city4 will be added to the last of the country list.&lt;/p&gt;

&lt;p&gt;if you want to delete the last index of the country you can do this by using the pop() method.&lt;br&gt;
example:&lt;br&gt;
 country.pop()&lt;br&gt;
print(country)&lt;/p&gt;

&lt;p&gt;in python language, there have many list methods. and these are easy to use. that's why I don't explain all.&lt;br&gt;
go google and search to write list method in python. you will get lots of resources.&lt;/p&gt;

&lt;p&gt;whatever, don't forget to do googling...&lt;/p&gt;

&lt;p&gt;this is for today. &lt;br&gt;
thanks for reading.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>if else statement in python</title>
      <dc:creator>Abu zubaer</dc:creator>
      <pubDate>Thu, 25 Feb 2021 15:17:14 +0000</pubDate>
      <link>https://dev.to/shajib126/if-else-statement-in-python-58lg</link>
      <guid>https://dev.to/shajib126/if-else-statement-in-python-58lg</guid>
      <description>&lt;p&gt;Let's talk about the if-else statement.&lt;br&gt;
In programming,  mostly use conditional statement.&lt;br&gt;
you can't think to solve any problem without a conditional statement.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JIm9bZg6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e507pvixn4wxwkek4mde.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JIm9bZg6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e507pvixn4wxwkek4mde.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;you can see the example of the if-else condition in the picture.&lt;br&gt;
if (it's raining)&lt;br&gt;
      then I will take the umbrella&lt;br&gt;
else&lt;br&gt;
   not&lt;/p&gt;

&lt;p&gt;this is so easy. isn't it?&lt;/p&gt;

&lt;p&gt;now I m gonna show you. that how to write a conditional statement in python language. before that, let's look at a flowchart of a conditional statement.&lt;/p&gt;

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

&lt;p&gt;In that flowchart, you can clearly see, if the condition(its rating) is true then he will take an umbrella if the condition is not true then he will not take an umbrella.&lt;/p&gt;

&lt;p&gt;Syntax:&lt;br&gt;
if condition:&lt;br&gt;
  print('if the statement is true then print me')&lt;br&gt;
else:&lt;br&gt;
  print('if that condition was not true then print me')&lt;/p&gt;

&lt;p&gt;this is the conditional syntax in python.&lt;br&gt;
remember, you have must input a colon after a condition, and should execute in the next line.&lt;br&gt;
otherwise, you can get an error.&lt;/p&gt;

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

&lt;p&gt;this is the right syntax. there has no error.&lt;br&gt;
"&amp;gt;" this is the 'greater than" operator.&lt;br&gt;
this operator has to check if their age is greater than 18 or not.&lt;br&gt;
in a programming language, there have many mathematical operators.&lt;br&gt;
don't worry about this. I am gonna talk about that.&lt;br&gt;
"&amp;gt;" --this is "greater than operator".&lt;br&gt;
"&amp;lt;" -- this is "smaller than operator".&lt;br&gt;
"=" -- this assignment operator.&lt;br&gt;
"==" --this is equal to operator.&lt;br&gt;
"%" --this is the modulus operator or reminder.&lt;/p&gt;

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

&lt;p&gt;that's it for today.&lt;br&gt;
The next day I am gonna post about the nested loop.&lt;br&gt;
and thanks for reading this.&lt;br&gt;
happy coding.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Type error in python</title>
      <dc:creator>Abu zubaer</dc:creator>
      <pubDate>Wed, 24 Feb 2021 18:23:24 +0000</pubDate>
      <link>https://dev.to/shajib126/type-error-in-python-jm3</link>
      <guid>https://dev.to/shajib126/type-error-in-python-jm3</guid>
      <description>&lt;p&gt;in python, You can not concatenate two types of data.&lt;br&gt;
suppose you are want to concatenate an integer value to a string value.&lt;br&gt;
string = "hello earth"&lt;br&gt;
number = 404&lt;br&gt;
print(string + 'how are you' + 'your server error number is' + number)&lt;br&gt;
the result will be a type error&lt;/p&gt;

&lt;p&gt;now, you think about how to concatenate different types of data !!&lt;br&gt;
in python, have a simple way to solve this problem.&lt;br&gt;
you can solve this problem by converting the data.&lt;br&gt;
suppose, you have two types of data number and string&lt;br&gt;
number = 14644&lt;br&gt;
string = 'anything'&lt;br&gt;
convert_number_as_a_string = str(number) //converting number to string by str method.&lt;br&gt;
print('hey number' + number + 'hey string' + string) //wow it's work now&lt;/p&gt;

&lt;p&gt;but I think this is the weird way.&lt;br&gt;
there has another easiest way to solve this problem.&lt;br&gt;
 f-string can solve this problem &lt;/p&gt;

&lt;p&gt;number = 11544&lt;br&gt;
string = 'anything'&lt;br&gt;
result = f"its number {number}. its string {string}" &lt;br&gt;
print(result)&lt;/p&gt;

&lt;p&gt;woow..it's work.&lt;br&gt;
can't believe it?&lt;br&gt;
just open your code editor or ide and try this / practicing this.&lt;/p&gt;

&lt;p&gt;this is my first post in dev. pardon me, if I did any mistake.&lt;br&gt;
note -- English is not my native language so normally you've could get a grammatical error. &lt;/p&gt;

&lt;p&gt;tanks for reading..&lt;/p&gt;

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