<?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: PERUMAL S</title>
    <description>The latest articles on DEV Community by PERUMAL S (@perumal_s).</description>
    <link>https://dev.to/perumal_s</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%2F1748007%2F96257a34-cce4-40ae-a357-1ce04b6b24b1.png</url>
      <title>DEV Community: PERUMAL S</title>
      <link>https://dev.to/perumal_s</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/perumal_s"/>
    <language>en</language>
    <item>
      <title>day -7 task</title>
      <dc:creator>PERUMAL S</dc:creator>
      <pubDate>Mon, 22 Jul 2024 17:44:22 +0000</pubDate>
      <link>https://dev.to/perumal_s/day-7-task-3ko2</link>
      <guid>https://dev.to/perumal_s/day-7-task-3ko2</guid>
      <description>&lt;blockquote&gt;
&lt;h1&gt;
  
  
  i have completed my task please let me know if found any mistake in comment box
&lt;/h1&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Write a function that takes a string and returns a new string consisting of its first and last character.
&lt;/h2&gt;

&lt;p&gt;number="tamizhnadu"&lt;br&gt;
number[0:10:9]&lt;/p&gt;

&lt;h2&gt;
  
  
  Write a function that reverses a given string.
&lt;/h2&gt;

&lt;p&gt;number[-1:-11:-1]&lt;/p&gt;

&lt;h2&gt;
  
  
  Given a string, extract and return a substring from the 3rd to the 8th character (inclusive).
&lt;/h2&gt;

&lt;p&gt;num1="inclusive"&lt;br&gt;
num1[2:9]&lt;/p&gt;

&lt;h2&gt;
  
  
  Write a function that returns every second character from a given string.
&lt;/h2&gt;

&lt;p&gt;num1[2:9:2]&lt;/p&gt;

&lt;h2&gt;
  
  
  Write a function that checks if a given string is a palindrome (reads the same backward as forward).
&lt;/h2&gt;

&lt;p&gt;name="civic"&lt;br&gt;
print(name[0:4+1])&lt;br&gt;
print(name[-1:-6:-1])&lt;/p&gt;

&lt;h2&gt;
  
  
  Given an email address, extract and return the domain.
&lt;/h2&gt;

&lt;p&gt;mail="&lt;a href="mailto:dummy@gmail.com"&gt;dummy@gmail.com&lt;/a&gt;"&lt;br&gt;
mail[6:]&lt;/p&gt;

&lt;h2&gt;
  
  
  Write a function that returns every third character from a given string.
&lt;/h2&gt;

&lt;p&gt;mail="&lt;a href="mailto:dummy@gmail.com"&gt;dummy@gmail.com&lt;/a&gt;"&lt;br&gt;
mail[2:15:3]&lt;/p&gt;

&lt;h2&gt;
  
  
  Write a function that extracts and returns characters at even indices from a given string.
&lt;/h2&gt;

&lt;p&gt;mail[2:15:2]&lt;/p&gt;

&lt;h2&gt;
  
  
  Write a function that skips every second character and then reverses the resulting string.
&lt;/h2&gt;

&lt;p&gt;mail[-1:-16:-2]&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Python Day 7</title>
      <dc:creator>PERUMAL S</dc:creator>
      <pubDate>Mon, 22 Jul 2024 15:12:45 +0000</pubDate>
      <link>https://dev.to/perumal_s/python-day-7-255j</link>
      <guid>https://dev.to/perumal_s/python-day-7-255j</guid>
      <description>&lt;p&gt;learning&lt;/p&gt;

&lt;h1&gt;
  
  
  index
&lt;/h1&gt;

&lt;p&gt;always use character inside of this [] box&lt;br&gt;
message =("hello world")&lt;br&gt;
index number start from (0,1,2,3......)&lt;/p&gt;

&lt;p&gt;h    e   l  l  o  w  o  r  l  d&lt;br&gt;
0    1   2  3  4  5  6  7  8  9  (positive index)&lt;br&gt;
-10 -9  -8 -7 -6 -5 -4 -3 -2 -1  (negative index)&lt;/p&gt;

&lt;p&gt;it will possible to find out this position &lt;/p&gt;

&lt;p&gt;code 1&lt;br&gt;
message ="hello world" &lt;br&gt;
message [5]&lt;br&gt;
result: o&lt;br&gt;
code 2&lt;br&gt;
message [-1] &lt;br&gt;
 result: d&lt;/p&gt;

&lt;h1&gt;
  
  
  slicing
&lt;/h1&gt;

&lt;p&gt;h    e   l  l  o  w  o  r  l  d&lt;br&gt;
0    1   2  3  4  5  6  7  8  9  (positive index)&lt;br&gt;
-10 -9  -8 -7 -6 -5 -4 -3 -2 -1  (negative index)&lt;br&gt;
start ----------------------------end (stop)  (forward direction)&lt;br&gt;
(stop)end----------------------------start       (reverse direction)&lt;/p&gt;

&lt;p&gt;we can spectate the words based on the character position &lt;/p&gt;

&lt;p&gt;[0:9] #[start:stop:(step or direction)]&lt;/p&gt;

&lt;p&gt;slicing possible forward direction and reverse direction&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;br&gt;
while reverse direction must to be use step -1&lt;br&gt;
e.g&lt;br&gt;
[-1:-10;-1] result reverse  of "dlrowolleh"&lt;br&gt;
[9:1:-1]   result reverse of "dlrowolleh&lt;/p&gt;

&lt;h1&gt;
  
  
  ref
&lt;/h1&gt;

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

</description>
    </item>
    <item>
      <title>TASK 3-Q2</title>
      <dc:creator>PERUMAL S</dc:creator>
      <pubDate>Thu, 18 Jul 2024 14:29:07 +0000</pubDate>
      <link>https://dev.to/perumal_s/task-3-q2-1h75</link>
      <guid>https://dev.to/perumal_s/task-3-q2-1h75</guid>
      <description>&lt;h1&gt;
  
  
  Write a program that takes an integer as input and checks if it is even or odd
&lt;/h1&gt;

&lt;p&gt;a= int(input("type your number:"))&lt;br&gt;
if ((a%2)==0):&lt;br&gt;
  print("your number is  even:")&lt;br&gt;
else:&lt;br&gt;
  print("your number is odd:")&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Day -6 learning</title>
      <dc:creator>PERUMAL S</dc:creator>
      <pubDate>Wed, 17 Jul 2024 15:30:28 +0000</pubDate>
      <link>https://dev.to/perumal_s/day-6-learning-2f2b</link>
      <guid>https://dev.to/perumal_s/day-6-learning-2f2b</guid>
      <description>&lt;p&gt;Hi today learned functions&lt;/p&gt;

&lt;p&gt;below the picture five basic structure of function&lt;/p&gt;

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

&lt;h1&gt;
  
  
  example:1
&lt;/h1&gt;

&lt;p&gt;def india_allience(con,dmk):&lt;br&gt;
  return con+dmk&lt;br&gt;
con=10&lt;br&gt;
dmk=30&lt;br&gt;
india_allience(con,dmk)&lt;/p&gt;

&lt;h1&gt;
  
  
  result
&lt;/h1&gt;

&lt;h1&gt;
  
  
  40
&lt;/h1&gt;

&lt;h1&gt;
  
  
  example:2
&lt;/h1&gt;

&lt;p&gt;def india_allience(con,dmk):&lt;br&gt;
  return con+dmk&lt;br&gt;
con=10&lt;br&gt;
dmk=30&lt;br&gt;
print("40 ku",india_allience(con,dmk))&lt;/p&gt;

&lt;h1&gt;
  
  
  result
&lt;/h1&gt;

&lt;h1&gt;
  
  
  40 ku 40
&lt;/h1&gt;

</description>
    </item>
    <item>
      <title>Task-3 Qsn-5</title>
      <dc:creator>PERUMAL S</dc:creator>
      <pubDate>Tue, 16 Jul 2024 17:58:28 +0000</pubDate>
      <link>https://dev.to/perumal_s/task-3-qsn-5-412n</link>
      <guid>https://dev.to/perumal_s/task-3-qsn-5-412n</guid>
      <description>&lt;h1&gt;
  
  
  Create a program that takes three numbers as input and prints the largest of the three.
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Ans
&lt;/h1&gt;

&lt;h1&gt;
  
  
  note i have added Loop
&lt;/h1&gt;

&lt;p&gt;while True:&lt;br&gt;
  num1=int(input("enter a number 1:"))&lt;br&gt;
  num2=int(input("enter a number 2:"))&lt;br&gt;
  num3=int(input("enter a number 3:"))&lt;br&gt;
  if num2&amp;lt;=num1&amp;gt;=num3:&lt;br&gt;
    print ("biggest num is",num1)&lt;br&gt;
  elif num1&amp;lt;=num2&amp;gt;=num3:&lt;br&gt;
      print ("biggest num is",num2)&lt;br&gt;
  else:&lt;br&gt;
    print ("biggest num is",num3)&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Task 3 Qsn-7</title>
      <dc:creator>PERUMAL S</dc:creator>
      <pubDate>Tue, 16 Jul 2024 17:55:31 +0000</pubDate>
      <link>https://dev.to/perumal_s/task-3-qsn-7-37e5</link>
      <guid>https://dev.to/perumal_s/task-3-qsn-7-37e5</guid>
      <description>&lt;h1&gt;
  
  
  Create a program that takes a person’s age as input and checks if they are eligible to vote (age 18 or older).
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Ans
&lt;/h1&gt;

&lt;p&gt;Name=input("enter your name:")&lt;br&gt;
age=int(input("enter your age:"))&lt;/p&gt;

&lt;p&gt;if age&amp;gt;=18:&lt;br&gt;
  print("you are eligible to vote")&lt;br&gt;
else:&lt;br&gt;
  print("you are not eligible for vote")&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Task 3 Qsn-9</title>
      <dc:creator>PERUMAL S</dc:creator>
      <pubDate>Tue, 16 Jul 2024 17:53:47 +0000</pubDate>
      <link>https://dev.to/perumal_s/task-3-qsn-9-20bd</link>
      <guid>https://dev.to/perumal_s/task-3-qsn-9-20bd</guid>
      <description>&lt;h1&gt;
  
  
  Create a program that calculates simple interest. Take the principal amount, rate of interest, and time period as input.
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Ans
&lt;/h1&gt;

&lt;p&gt;a=float(input("enter your total loan amount :"))&lt;br&gt;
b=float(input("total months :"))&lt;br&gt;
if (b&amp;gt;=1):&lt;br&gt;
    d=(b*(a*0.02))&lt;br&gt;
    result=(a+d)&lt;br&gt;
    print("your total paid amount",result)&lt;br&gt;
    print("intrest amount",d) &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Task-3 Qsn 10</title>
      <dc:creator>PERUMAL S</dc:creator>
      <pubDate>Tue, 16 Jul 2024 17:51:27 +0000</pubDate>
      <link>https://dev.to/perumal_s/task-3-l80</link>
      <guid>https://dev.to/perumal_s/task-3-l80</guid>
      <description>&lt;h1&gt;
  
  
  Write a program that asks the user to enter a password. If the password is correct, print “Access granted”; otherwise, print “Access denied”.
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Ans
&lt;/h1&gt;

&lt;p&gt;save_password=input("save your password")&lt;br&gt;
a=input("enter your password :")&lt;br&gt;
if a==save_password:&lt;br&gt;
    print("access granted")&lt;br&gt;
else:&lt;br&gt;
    print("access denied")&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Day 5 Learning</title>
      <dc:creator>PERUMAL S</dc:creator>
      <pubDate>Tue, 16 Jul 2024 16:51:16 +0000</pubDate>
      <link>https://dev.to/perumal_s/day-5-learning-42j</link>
      <guid>https://dev.to/perumal_s/day-5-learning-42j</guid>
      <description>&lt;p&gt;Toady learned&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;logical operators&lt;/strong&gt;&lt;br&gt;
and&lt;br&gt;
or&lt;br&gt;
Not&lt;/p&gt;

&lt;p&gt;true false table value &lt;/p&gt;

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

</description>
    </item>
    <item>
      <title>Python Day-4 learning</title>
      <dc:creator>PERUMAL S</dc:creator>
      <pubDate>Mon, 15 Jul 2024 16:56:16 +0000</pubDate>
      <link>https://dev.to/perumal_s/python-day-4-learning-32gh</link>
      <guid>https://dev.to/perumal_s/python-day-4-learning-32gh</guid>
      <description>&lt;p&gt;Hi all &lt;/p&gt;

&lt;p&gt;today we learned operators, conditions also we made simple calculator based on this function&lt;/p&gt;

&lt;p&gt;codes&lt;/p&gt;

&lt;p&gt;addition &lt;br&gt;
Add=num1+num2&lt;/p&gt;

&lt;p&gt;subtract &lt;br&gt;
Add=num1-num2&lt;/p&gt;

&lt;p&gt;multiple&lt;br&gt;
Add=num1*num2&lt;/p&gt;

&lt;p&gt;divide&lt;br&gt;
Add=num1/num2&lt;/p&gt;

&lt;p&gt;modules &lt;br&gt;
Add=num1%num2&lt;/p&gt;

&lt;p&gt;exponential&lt;br&gt;
Add=num1**num2 &lt;/p&gt;

&lt;p&gt;loop (while)&lt;/p&gt;

&lt;p&gt;if,elif,else Condition&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;input method *&lt;/em&gt;&lt;br&gt;
whatever put in inside of input it will converts as string &lt;/p&gt;

&lt;p&gt;E.g&lt;br&gt;
num1=input(enter a number)&lt;br&gt;
if we  want as valued number put use or convert as a int or Float&lt;/p&gt;

&lt;p&gt;num1= int input(enter a number)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;simple calculator code&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;while True:&lt;br&gt;
  print("simple calculator")&lt;br&gt;
  print("select operation")&lt;br&gt;
  print("1.add")&lt;br&gt;
  print("2.subtract")&lt;br&gt;
  print("3.multiply")&lt;br&gt;
  print("4.diveded")&lt;br&gt;
  print("5.modulas")&lt;br&gt;
  print("6.exponential")&lt;br&gt;
  choice=input("select operation 1/2/3/4/5/6/7:")&lt;br&gt;
  num1=float(input("enter a number 1:"))&lt;br&gt;
  num2=float(input("enter a number 2:"))&lt;br&gt;
  if choice== "1":&lt;br&gt;
    result = num1+num2&lt;br&gt;
    print("result is",result)&lt;br&gt;
  elif choice== "2":&lt;br&gt;
    result = num1-num2&lt;br&gt;
    print("result is",result)&lt;br&gt;
  elif choice== "3":&lt;br&gt;
    result = num1*num2&lt;br&gt;
    print("result is",result)&lt;br&gt;
  elif choice== "4":&lt;br&gt;
    result = num1/num2&lt;br&gt;
    print("result is",result)&lt;br&gt;
  elif choice== "5":&lt;br&gt;
    result = num1%num2&lt;br&gt;
    print("result is",result)&lt;br&gt;
  elif choice== "6":&lt;br&gt;
    result = num1**num2&lt;br&gt;
    print("result is",result)&lt;br&gt;
  else choice== "7":&lt;br&gt;
        break&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Day -3 learning</title>
      <dc:creator>PERUMAL S</dc:creator>
      <pubDate>Wed, 10 Jul 2024 17:12:23 +0000</pubDate>
      <link>https://dev.to/perumal_s/day-3-learning-22la</link>
      <guid>https://dev.to/perumal_s/day-3-learning-22la</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. Numeric Types (int, float, complex)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;a) 26-int (numbers)&lt;br&gt;
b) 26.5-float (numbers with decimal)&lt;br&gt;
c) 2+3i complex (real number+ imaginary number)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Text Type (strings)&lt;/strong&gt;&lt;br&gt;
a)""&lt;br&gt;
b)''&lt;br&gt;
c)"""&lt;br&gt;
  """&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Boolean Type (bool)&lt;/strong&gt;&lt;br&gt;
a) True&lt;br&gt;
b) False&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. None Type (None)&lt;/strong&gt;&lt;br&gt;
   None means its like nothing there is no value &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. How to check a data type ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;a) identify the data type below methods&lt;br&gt;
E.g.&lt;br&gt;
type(26)      result = int&lt;br&gt;
type (26.5)   result = float&lt;br&gt;
type (True)   result = bool&lt;br&gt;
type("Chennai")  result= str&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. What is a variable ?&lt;/strong&gt;&lt;br&gt;
   variable is nothing kind of bag here we can save or store or define the object&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;7. How to define it *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;type variable Name = value;&lt;br&gt;
E.g.&lt;br&gt;
name=chozhan (variable)&lt;br&gt;
city=thanjavur (variable)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8. valid, invalid variables&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A variable name cannot start with a number have a space in the name or contain special characters&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9. assigning values&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10. multiple assignment&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;in single cell will assign multiple variable&lt;br&gt;
E.g&lt;br&gt;
name,age,city=chozhan,3000,thanjavr&lt;/p&gt;

&lt;p&gt;code:  print(name,age,city)&lt;/p&gt;

&lt;p&gt;result:  chozhan,3000,thanjavr&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;11. unpacking&lt;/strong&gt;&lt;br&gt;
will update future &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;12. variable types&lt;/strong&gt;&lt;br&gt;
will update future &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;13. Constants&lt;/strong&gt;&lt;br&gt;
user can defined the value should not be change &lt;/p&gt;

&lt;p&gt;e.g.&lt;br&gt;
PI=3.14&lt;/p&gt;

</description>
    </item>
    <item>
      <title>python learning-D1</title>
      <dc:creator>PERUMAL S</dc:creator>
      <pubDate>Mon, 08 Jul 2024 17:22:22 +0000</pubDate>
      <link>https://dev.to/perumal_s/python-learning-d1-mal</link>
      <guid>https://dev.to/perumal_s/python-learning-d1-mal</guid>
      <description>&lt;p&gt;hi &lt;/p&gt;

&lt;p&gt;day 1&lt;br&gt;
'''python&lt;br&gt;
print(welcome)'''&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
