<?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: MI Shajib</title>
    <description>The latest articles on DEV Community by MI Shajib (@mishajib).</description>
    <link>https://dev.to/mishajib</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%2F459099%2Fc49ada74-8d63-4f2d-b57a-3f66006659b0.jpeg</url>
      <title>DEV Community: MI Shajib</title>
      <link>https://dev.to/mishajib</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mishajib"/>
    <language>en</language>
    <item>
      <title>Python List</title>
      <dc:creator>MI Shajib</dc:creator>
      <pubDate>Sat, 12 Sep 2020 20:14:21 +0000</pubDate>
      <link>https://dev.to/mishajib/python-list-3omm</link>
      <guid>https://dev.to/mishajib/python-list-3omm</guid>
      <description>&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Author - MI SHAJIB

# Python List / or any other language called by array

bazar = ["alu", "potol", "morich"]

print(bazar)

# List item update / replace

print(bazar[0])

bazar[0] = "fish"

print(bazar)
# we can change any item using negative index example

print(bazar[-1])

bazar[-1] = "cucumber"

print(bazar)

# bazar[3] = "cream"  # It will give list assignment error (list assignment index out of range) That's why we use append() method of python

# print(bazar)


# Add / Append new item with append() method. append() method add item end of the list
bazar.append("cream")
print(bazar)

# If we want to add new item using index number then we can use insert() method
bazar.insert(0, "oil")
print(bazar)

# we can also add two list
bazar2 = ['mango', "salt", "spray"]

print(bazar2)

final_bazar_list = bazar2 + bazar

print(final_bazar_list)

print('\n \n \n \n')


# Remove list item using del keyword
del final_bazar_list[2]  # Here we want to delete 2 index item / spray
print(final_bazar_list)  # Successfully delete the given item

print('\n \n \n')

# Remove list item using remove() method
final_bazar_list.remove('potol')  # Here we want to remove potol
print(final_bazar_list)  # Successfully removed item

print('\n \n \n')


# If we want to remove end item of the list then we can use pop() method. Also we can store removed item by using this pop() method
# Here we can remove last item and store the removed item into variable
removed_item = final_bazar_list.pop()
print(final_bazar_list)
print(removed_item)

print('\n \n \n')

# We can also define empty list
empty_list = []
print(empty_list)

print('\n \n \n')


# we can also convert string into list
string = "shajib, zihan, akter"
string_list = string.split(',')
print(string_list)
print(type(string_list))

# we can also split string by space
string2 = "polash, fahad, akter"
string_list2 = string2.split(' ')
print(string_list2)
print(type(string_list2))

print('\n \n \n')

# We can find length of list by len() method
print(final_bazar_list)
print(len(final_bazar_list))
print('\n \n \n')


# We can append multiple item at a time by extend() method
final_bazar_list.extend(['ada', 'lebu'])
print(final_bazar_list)
print('\n \n \n')

# List Reversing
final_bazar_list.reverse()
print(final_bazar_list)
print('\n \n \n')

# List Soring
final_bazar_list.sort()
print(final_bazar_list)
print('\n \n \n')

# We can also define list into list or multidimensional list
multi_list = [['a', 'b', 'c'], [1, 2, 3, 4], 'x', 'y', 'z']
print(multi_list)
print(len(multi_list))

# Access multidimensional list
print(multi_list[0])
print(multi_list[0][2])

print(multi_list[1])
print(multi_list[1][3])

print(multi_list[4])
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>python</category>
    </item>
    <item>
      <title>PHP Input Sanitization</title>
      <dc:creator>MI Shajib</dc:creator>
      <pubDate>Sat, 12 Sep 2020 20:11:05 +0000</pubDate>
      <link>https://dev.to/mishajib/php-input-sanitization-46kp</link>
      <guid>https://dev.to/mishajib/php-input-sanitization-46kp</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SWffotEV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/fmfaxpvwk53imdo9ihu3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SWffotEV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/fmfaxpvwk53imdo9ihu3.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>php</category>
      <category>phpinputsanitization</category>
    </item>
  </channel>
</rss>
