<?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: Arokya Naresh</title>
    <description>The latest articles on DEV Community by Arokya Naresh (@arokya_naresh_178a488116e).</description>
    <link>https://dev.to/arokya_naresh_178a488116e</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%2F1744794%2Fe0d8db2b-4c41-4d04-bc5e-43ec1c876d66.jpg</url>
      <title>DEV Community: Arokya Naresh</title>
      <link>https://dev.to/arokya_naresh_178a488116e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arokya_naresh_178a488116e"/>
    <language>en</language>
    <item>
      <title>File Handling in Python</title>
      <dc:creator>Arokya Naresh</dc:creator>
      <pubDate>Wed, 14 Aug 2024 11:48:25 +0000</pubDate>
      <link>https://dev.to/arokya_naresh_178a488116e/file-handling-in-python-41dg</link>
      <guid>https://dev.to/arokya_naresh_178a488116e/file-handling-in-python-41dg</guid>
      <description>&lt;p&gt;File Handling in Python&lt;br&gt;
Modes &lt;br&gt;
Read Mode 'r'&lt;br&gt;
Write Mode 'w'&lt;br&gt;
Append(Editable) 'a'&lt;br&gt;
to read binary file 'rb'&lt;br&gt;
To delete a file use remove()&lt;/p&gt;

&lt;p&gt;To open a source file in readmode&lt;/p&gt;

&lt;p&gt;Eg;&lt;br&gt;
with open('source.txt','r') as file:&lt;br&gt;&lt;br&gt;
    print(file,type(file))&lt;/p&gt;

&lt;p&gt;To get to know the type of the file&lt;br&gt;
with open('source.txt','r') as file:&lt;br&gt;
    print(file,type(file))&lt;/p&gt;

&lt;p&gt;To create a new file or over-write use Write mode&lt;/p&gt;

&lt;p&gt;Eg:&lt;br&gt;
with open('source1.txt','w') as file:&lt;br&gt;
    file.write('e f g h')&lt;br&gt;
    file.write('i j k l')&lt;/p&gt;

&lt;p&gt;To append more info we use append mode&lt;/p&gt;

&lt;p&gt;Eg:&lt;br&gt;
with open('source1.txt','a') as file:&lt;br&gt;
    file.write('m n o p')&lt;/p&gt;

&lt;p&gt;saved file will be&lt;br&gt;
e f g hi j k lm n o p&lt;/p&gt;

&lt;p&gt;To check whether file present or not&lt;br&gt;
import os&lt;/p&gt;

&lt;p&gt;if os.path.isfile('source1.txt'):&lt;br&gt;
    print('source1 founded')&lt;br&gt;
else:&lt;br&gt;
    print('source1 not founded')&lt;/p&gt;

&lt;p&gt;o/p:&lt;br&gt;
source1 founded&lt;/p&gt;

&lt;p&gt;Again to read the content of that file&lt;/p&gt;

&lt;p&gt;with open('source1.txt','r') as source_file:&lt;br&gt;
    content=source_file.readline()&lt;br&gt;
    print(content)&lt;/p&gt;

&lt;p&gt;o/p&lt;/p&gt;

&lt;p&gt;e f g hi j k lm n o p&lt;/p&gt;

&lt;p&gt;To read binary file 'rb'&lt;br&gt;
with open('binary.txt','rb') as source_file:&lt;/p&gt;

&lt;p&gt;To delete a file &lt;/p&gt;

&lt;p&gt;import os&lt;br&gt;
os.remove('source1.txt')&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Tuple and Sets in Python 08.08.2024</title>
      <dc:creator>Arokya Naresh</dc:creator>
      <pubDate>Thu, 08 Aug 2024 17:06:52 +0000</pubDate>
      <link>https://dev.to/arokya_naresh_178a488116e/tuple-and-sets-in-python-08082024-1a41</link>
      <guid>https://dev.to/arokya_naresh_178a488116e/tuple-and-sets-in-python-08082024-1a41</guid>
      <description>&lt;p&gt;Tuple(eg1-photoframe.A family going to trip and capturing photos)&lt;/p&gt;

&lt;p&gt;In Tuple,values cannot be changed&lt;br&gt;
but we can assign tuple to a list&lt;br&gt;
We can multiply the tuple but cant modify&lt;br&gt;
We can concatenate two tuples &lt;br&gt;
We can acces using Indexing&lt;br&gt;
Unpacking&lt;br&gt;
We can convert tuple into a list&lt;/p&gt;

&lt;h1&gt;
  
  
  Tuple Creation-once created we cannot change.
&lt;/h1&gt;

&lt;p&gt;o_trip=('Ooty','2024-1-1','Mountain')&lt;br&gt;
m_trip=('Munnar','2024-1-3','falls')&lt;br&gt;
kumarkom_trip=('kumarakom','2024-1-5','dinner')&lt;br&gt;
print('Ooty trip',o_trip,type(o_trip))&lt;/p&gt;

&lt;p&gt;photo_album=[o_trip,m_trip,kumarkom_trip]&lt;br&gt;
print(photo_album)&lt;/p&gt;

&lt;p&gt;location=o_trip[0]&lt;br&gt;
print('Location',location)&lt;/p&gt;

&lt;p&gt;print(m_trip)&lt;br&gt;
location,date,visted=m_trip #tuple created&lt;br&gt;
print(m_trip)&lt;/p&gt;

&lt;h1&gt;
  
  
  how to identify tuple-one variable assigned with many values is considered as tuple
&lt;/h1&gt;

&lt;p&gt;Checking Tuple values are present&lt;br&gt;
eg&lt;br&gt;
double_o_fun=o_trip*2&lt;br&gt;
print(double_o_fun)&lt;/p&gt;

&lt;p&gt;O/p&lt;br&gt;
('Ooty', '2024-1-1', 'Mountain', 'Ooty', '2024-1-1', 'Mountain')--&amp;gt;() braces say tuple&lt;/p&gt;

&lt;p&gt;To check length of the Tuple &lt;br&gt;
eg.&lt;/p&gt;

&lt;p&gt;print(len(photo_album))&lt;br&gt;
o/p&lt;br&gt;
3&lt;/p&gt;

&lt;p&gt;We can change Tuple into a List&lt;br&gt;
eg&lt;/p&gt;

&lt;p&gt;o_trip=('Ooty','2024-1-1','Mountain')&lt;br&gt;
m_trip=('Munnar','2024-1-3','falls')&lt;br&gt;
kumarkom_trip=('kumarakom','2024-1-5','dinner')&lt;/p&gt;

&lt;p&gt;o_list=list(o_trip)&lt;br&gt;
print(o_list)&lt;/p&gt;

&lt;p&gt;o/p&lt;br&gt;
['Ooty', '2024-1-1', 'Mountain']--&amp;gt;[] braces say List&lt;/p&gt;

&lt;p&gt;SET-(Union,Intersection,Difference)&lt;br&gt;
We cannot add duplicate items&lt;br&gt;
We can add values&lt;br&gt;
We can remove values&lt;br&gt;
we can check values are present&lt;br&gt;
It has unique values&lt;br&gt;
Here we cannot use indexing bcoz its unordered&lt;/p&gt;

&lt;h1&gt;
  
  
  Tuple Creation
&lt;/h1&gt;

&lt;p&gt;my_garden={'Rose','Lily','Jasmine'}&lt;br&gt;
print(my_garden,type(my_garden))&lt;br&gt;
o/p&lt;br&gt;
{'Rose', 'Lily', 'Jasmine'} &lt;/p&gt;

&lt;h1&gt;
  
  
  adding more values
&lt;/h1&gt;

&lt;p&gt;my_garden.add('Marigold')&lt;br&gt;
print(my_garden)&lt;br&gt;
o/p&lt;br&gt;
{'Rose', 'Lily', 'Jasmine', 'Marigold'}&lt;/p&gt;

&lt;h1&gt;
  
  
  adding duplicate value
&lt;/h1&gt;

&lt;p&gt;my_garden.add('Rose')&lt;br&gt;
print(my_garden)&lt;br&gt;
o/p&lt;br&gt;
{'Rose', 'Lily', 'Jasmine', 'Marigold'}&lt;/p&gt;

&lt;h1&gt;
  
  
  remove value
&lt;/h1&gt;

&lt;p&gt;my_garden.remove('Rose')&lt;br&gt;
print(my_garden)&lt;br&gt;
o/p&lt;br&gt;
{'Lily', 'Jasmine', 'Marigold'}&lt;/p&gt;

&lt;h1&gt;
  
  
  to check whether specific values are present
&lt;/h1&gt;

&lt;p&gt;is_rose_in_mygarden='Rose' in my_garden&lt;br&gt;
print(is_rose_in_mygarden)&lt;br&gt;
o/p&lt;br&gt;
False&lt;/p&gt;

&lt;p&gt;is_marigold_in_mygarden='Marigold' in my_garden&lt;br&gt;
print(is_marigold_in_mygarden)&lt;br&gt;
o/p&lt;br&gt;
True&lt;/p&gt;

&lt;h1&gt;
  
  
  Intersection -to find common values with two set
&lt;/h1&gt;

&lt;p&gt;my_garden={'Rose','Lily','Jasmine'}&lt;br&gt;
print(my_garden)&lt;/p&gt;

&lt;p&gt;n_garden={'Rose','Lotus','Hibiscus'}&lt;br&gt;
print(n_garden)&lt;/p&gt;

&lt;p&gt;comon_flowe=my_garden.intersection(n_garden)&lt;br&gt;
print(comon_flowe)&lt;/p&gt;

&lt;p&gt;o/p-&lt;/p&gt;

&lt;p&gt;{'Rose', 'Lily', 'Jasmine'}&lt;br&gt;
{'Hibiscus', 'Rose', 'Lotus'}&lt;br&gt;
{'Rose'}&lt;/p&gt;

&lt;p&gt;Differences -to find differnce with two set&lt;br&gt;
my_garden={'Rose','Lily','Jasmine'}&lt;br&gt;
print(my_garden)&lt;/p&gt;

&lt;p&gt;n_garden={'Rose','Lotus','Hibiscus'}&lt;br&gt;
print(n_garden)&lt;/p&gt;

&lt;p&gt;diff_flowe=my_garden.difference(n_garden)&lt;br&gt;
print(diff_flowe)&lt;/p&gt;

&lt;p&gt;o/p&lt;br&gt;
{'Rose', 'Lily', 'Jasmine'}&lt;br&gt;
{'Hibiscus', 'Rose', 'Lotus'}&lt;br&gt;
{'Lily', 'Jasmine'}&lt;/p&gt;

&lt;p&gt;Union -to combine tuple&lt;br&gt;
my_garden={'Rose','Lily','Jasmine'}&lt;br&gt;
print(my_garden)&lt;/p&gt;

&lt;p&gt;n_garden={'Rose','Lotus','Hibiscus'}&lt;br&gt;
print(n_garden)&lt;/p&gt;

&lt;p&gt;union_flowe=my_garden.union(n_garden)&lt;br&gt;
print(union_flowe)&lt;/p&gt;

&lt;p&gt;o/p&lt;/p&gt;

&lt;p&gt;{'Rose', 'Jasmine', 'Hibiscus', 'Lily', 'Lotus'}&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>methods in python 31.07.2024</title>
      <dc:creator>Arokya Naresh</dc:creator>
      <pubDate>Thu, 01 Aug 2024 12:30:17 +0000</pubDate>
      <link>https://dev.to/arokya_naresh_178a488116e/methods-in-python-31072024-mm6</link>
      <guid>https://dev.to/arokya_naresh_178a488116e/methods-in-python-31072024-mm6</guid>
      <description>&lt;p&gt;Methods in LIST&lt;/p&gt;

&lt;p&gt;1.Append method&lt;/p&gt;

&lt;p&gt;this append method will add items/info at the end of the list&lt;/p&gt;

&lt;p&gt;Eg:&lt;br&gt;
package=['Apple','Mango','Banana']&lt;br&gt;
print(package)&lt;/p&gt;

&lt;p&gt;package.append('Kiwi')&lt;br&gt;
print(package)&lt;/p&gt;

&lt;p&gt;o/p&lt;br&gt;
['Apple', 'Mango', 'Banana']&lt;br&gt;
['Apple', 'Mango', 'Banana', 'Kiwi']&lt;/p&gt;

&lt;p&gt;2.insert method&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If incase you need to add the items/info in the middle so we can use insert() method&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;package=['Apple','Mango','Banana']&lt;br&gt;
print(package)&lt;/p&gt;

&lt;p&gt;package.insert(1,'Guava')   #1 is the index position where we can add items/info &lt;br&gt;
print(package)&lt;/p&gt;

&lt;p&gt;o/p&lt;br&gt;
['Apple', 'Mango', 'Banana']&lt;br&gt;
['Apple', 'Guava', 'Mango', 'Banana']&lt;/p&gt;

&lt;p&gt;3.Remove method&lt;/p&gt;

&lt;p&gt;package=['Apple','Mango','Banana']&lt;br&gt;
print(package)&lt;/p&gt;

&lt;p&gt;package.remove('Mango')&lt;br&gt;
print(package)&lt;/p&gt;

&lt;p&gt;o/p:&lt;br&gt;
['Apple', 'Mango', 'Banana']&lt;br&gt;
['Apple', 'Banana'&lt;/p&gt;

&lt;p&gt;4.Pop method&lt;/p&gt;

&lt;p&gt;This POP method will removes last items/info in the list&lt;br&gt;
Also deleted items/info will be returned or assigned to a variiable&lt;/p&gt;

&lt;p&gt;Eg:&lt;br&gt;
package=['Apple','Mango','Banana']&lt;br&gt;
print(package)&lt;/p&gt;

&lt;p&gt;package.pop()&lt;br&gt;
print(package)&lt;/p&gt;

&lt;p&gt;O/P&lt;br&gt;
['Apple', 'Mango', 'Banana']&lt;br&gt;
['Apple', 'Mango']&lt;/p&gt;

&lt;p&gt;5.Index method()&lt;br&gt;
To find the Index position we use index() method&lt;br&gt;
Eg:&lt;br&gt;
package=['Apple','Mango','Banana']&lt;br&gt;
print(package)&lt;/p&gt;

&lt;p&gt;x=package.index('Mango')&lt;br&gt;
print(x)&lt;br&gt;
o/p&lt;br&gt;
['Apple', 'Mango', 'Banana']&lt;br&gt;
1&lt;/p&gt;

&lt;p&gt;6.sort() method&lt;/p&gt;

&lt;p&gt;It is used to sort the items/values in the list in Alphabetic order&lt;/p&gt;

&lt;p&gt;Eg:&lt;br&gt;
package=['Apple','Mango','Banana']&lt;br&gt;
print(package)&lt;/p&gt;

&lt;p&gt;package.sort()&lt;br&gt;
print(package)&lt;/p&gt;

&lt;p&gt;O/P&lt;br&gt;
['Apple', 'Mango', 'Banana']&lt;br&gt;
['Apple', 'Banana', 'Mango']&lt;/p&gt;

&lt;p&gt;7.reverse() method &lt;/p&gt;

&lt;p&gt;It is used to reverse the items/values in the list&lt;/p&gt;

&lt;p&gt;Eg&lt;br&gt;
package=['Apple','Mango','Banana']&lt;br&gt;
print(package)&lt;/p&gt;

&lt;p&gt;package.reverse()&lt;br&gt;
print(package)&lt;/p&gt;

&lt;p&gt;O/P&lt;br&gt;
['Apple', 'Mango', 'Banana']&lt;br&gt;
['Banana', 'Mango', 'Apple']&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Python tutorial 25.07.2024</title>
      <dc:creator>Arokya Naresh</dc:creator>
      <pubDate>Thu, 25 Jul 2024 11:54:43 +0000</pubDate>
      <link>https://dev.to/arokya_naresh_178a488116e/python-tutorial-25072024-1nee</link>
      <guid>https://dev.to/arokya_naresh_178a488116e/python-tutorial-25072024-1nee</guid>
      <description>&lt;p&gt;SLICING &lt;br&gt;
we can hop btwn letters in the index&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        H   e   l   l   o   m   o   b   i   l   e
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Positive Indexing   0   1   2   3   4   5   6   7   8   9   10&lt;br&gt;
Negative Indexing   -11 -10 -9  -8  -7  -6  -5  -4  -3  -2  -1&lt;/p&gt;

&lt;p&gt;Eg1:&lt;br&gt;
msg='HelloMobile'&lt;br&gt;
print(msg[0:11:2])   --&amp;gt;2 denotes hop (i.e no. of hop inbtwn letter )&lt;br&gt;
print(msg[0:11:3])&lt;/p&gt;

&lt;p&gt;o/p&lt;br&gt;
Hlooie&lt;br&gt;
Hlol&lt;/p&gt;

&lt;p&gt;Iterable-is a container of value which we can iterate by using loop&lt;/p&gt;

&lt;p&gt;eg:&lt;br&gt;
loop='Apple'&lt;br&gt;
for d in loop[1:]:&lt;br&gt;
    print(d)&lt;/p&gt;

&lt;p&gt;A&lt;br&gt;
p&lt;br&gt;
p&lt;br&gt;
l&lt;br&gt;
e&lt;/p&gt;

&lt;p&gt;Here loop is that container which has values Apple.To get to know what is in that loop we use for loop which we can iterate&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Python Index tutorial 22.07.2024</title>
      <dc:creator>Arokya Naresh</dc:creator>
      <pubDate>Thu, 25 Jul 2024 11:52:09 +0000</pubDate>
      <link>https://dev.to/arokya_naresh_178a488116e/python-index-tutorial-22072024-516k</link>
      <guid>https://dev.to/arokya_naresh_178a488116e/python-index-tutorial-22072024-516k</guid>
      <description>&lt;p&gt;Index&lt;/p&gt;

&lt;p&gt;String-Sequence of characters&lt;br&gt;
each character have each position called as index&lt;br&gt;
Index values starts from 0&lt;br&gt;
Spaces inbetween each word also calculator&lt;br&gt;
Indexing has positive and negative indexing&lt;br&gt;
Negative indexing -1 starts from end of the character&lt;/p&gt;

&lt;p&gt;Eg:&lt;br&gt;
word='Message'&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        M   e   s   s   a   g   e
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Positive Indexing   0   1   2   3   4   5   6&lt;br&gt;
Negative Indexing   -7  -6  -5  -4  -3  -2  -1&lt;/p&gt;

&lt;p&gt;word[3]&lt;br&gt;
s&lt;/p&gt;

&lt;p&gt;len(word)&lt;br&gt;
6&lt;/p&gt;

&lt;p&gt;Slicing&lt;/p&gt;

&lt;p&gt;string[startingindex:before value to end]&lt;/p&gt;

&lt;p&gt;string[startingindex:before value to end:direction]  --&amp;gt;this reverse the direction of the string&lt;/p&gt;

&lt;p&gt;string[]-this prints the entire values&lt;/p&gt;

&lt;p&gt;Eg:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        H   e   l   l   o   m   o   b   i   l   e
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Positive Indexing   0   1   2   3   4   5   6   7   8   9   10&lt;br&gt;
Negative Indexing   -11 -10 -9  -8  -7  -6  -5  -4  -3  -2  -1&lt;/p&gt;

&lt;p&gt;msg='HelloMobile'&lt;br&gt;
print(msg[2:5]) #postive index&lt;br&gt;
print(msg[-5:-2]) #negative index&lt;br&gt;
print(msg[::-1])reverse the string&lt;br&gt;
print(msg[-2:-5:-1]) #reverse la print aagum&lt;br&gt;
print(msg[5:])&lt;br&gt;
print(msg[:-5])&lt;/p&gt;

&lt;p&gt;o/p&lt;br&gt;
llo&lt;br&gt;
obi&lt;br&gt;
elibomolleH&lt;br&gt;
lib&lt;br&gt;
Mobile&lt;br&gt;
HelloM&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Python Functions 17.07.2024</title>
      <dc:creator>Arokya Naresh</dc:creator>
      <pubDate>Sun, 21 Jul 2024 15:51:21 +0000</pubDate>
      <link>https://dev.to/arokya_naresh_178a488116e/python-functions-17072024-4jgi</link>
      <guid>https://dev.to/arokya_naresh_178a488116e/python-functions-17072024-4jgi</guid>
      <description>&lt;p&gt;Functions&lt;/p&gt;

&lt;p&gt;repeated step can be executed with functions&lt;/p&gt;

&lt;h2&gt;
  
  
  Funtion Structure:
&lt;/h2&gt;

&lt;p&gt;def name(argument):&lt;br&gt;
Statement..&lt;br&gt;
Statement..&lt;/p&gt;

&lt;h2&gt;
  
  
  return value
&lt;/h2&gt;

&lt;p&gt;def-define function&lt;br&gt;
def functionname(contains a list of values passed to the function)&lt;br&gt;
function body must be indented&lt;br&gt;
this is executed each time the function is called&lt;br&gt;
return values&lt;/p&gt;

&lt;p&gt;Function has bulid-in function and user-defined functions&lt;/p&gt;

&lt;p&gt;Eg-Calculator prgm&lt;br&gt;
num1=float(input('Enter value for num1 '))&lt;br&gt;
num2=float(input('Enter value for num2 '))&lt;br&gt;
choice=input('Operation to be done:add/sub/mul/div/mod ')&lt;/p&gt;

&lt;p&gt;def add(num1,num2):&lt;br&gt;
    add=num1+num2&lt;br&gt;
    print (add)&lt;/p&gt;

&lt;p&gt;def sub(num1,num2):&lt;br&gt;
    sub=num1-num2&lt;br&gt;
    print(sub)&lt;/p&gt;

&lt;p&gt;def mul(num1,num2):&lt;br&gt;
    mul=num1*num2&lt;br&gt;
    print(mul)&lt;/p&gt;

&lt;p&gt;def div(num1,num2):&lt;br&gt;
    div=num1//num2&lt;br&gt;
    print(div)&lt;/p&gt;

&lt;p&gt;if choice=='add':&lt;br&gt;
    add=num1+num2&lt;br&gt;
    print(add)&lt;/p&gt;

&lt;p&gt;elif choice=='sub':&lt;br&gt;
    sub=num1-num2&lt;br&gt;
    print(sub)&lt;/p&gt;

&lt;p&gt;elif choice=='mul':&lt;br&gt;
    mul=num1*num2&lt;br&gt;
    print(mul)&lt;/p&gt;

&lt;p&gt;elif choice=='div':&lt;br&gt;
    div=num1//num2&lt;br&gt;
    print(div)&lt;/p&gt;

&lt;p&gt;else:&lt;br&gt;
    print('option not available')&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Python Operators and Conditional 15.07.2024</title>
      <dc:creator>Arokya Naresh</dc:creator>
      <pubDate>Sun, 21 Jul 2024 15:49:41 +0000</pubDate>
      <link>https://dev.to/arokya_naresh_178a488116e/python-operators-and-conditional-15072024-430p</link>
      <guid>https://dev.to/arokya_naresh_178a488116e/python-operators-and-conditional-15072024-430p</guid>
      <description>&lt;p&gt;Operators&lt;br&gt;
Operator and Conditions&lt;/p&gt;

&lt;p&gt;Add +&lt;br&gt;
Sub -&lt;br&gt;
Mul *&lt;br&gt;
Div  // floor division&lt;br&gt;
Mod % to get remainder&lt;br&gt;
Exponent **&lt;/p&gt;

&lt;p&gt;eg:&lt;br&gt;
a=int(input('Enter value for a '))&lt;br&gt;
b=int(input('Enter value for b '))&lt;/p&gt;

&lt;p&gt;add=a+b&lt;br&gt;
print(add)&lt;/p&gt;

&lt;p&gt;sub=a-b&lt;br&gt;
print(sub)&lt;/p&gt;

&lt;p&gt;mul=a*b&lt;br&gt;
print(mul)&lt;/p&gt;

&lt;p&gt;div=a//b&lt;br&gt;
print(div)&lt;/p&gt;

&lt;p&gt;mod=a%b&lt;br&gt;
print(mod)&lt;/p&gt;

&lt;p&gt;exp=2 ** 3 #2 power 3&lt;br&gt;
print(exp)&lt;/p&gt;

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

&lt;p&gt;eg1:Calculator prgm&lt;/p&gt;

&lt;p&gt;num1=float(input('Enter value for num1 '))&lt;br&gt;
num2=float(input('Enter value for num2 '))&lt;br&gt;
choice=input('Operation to be done:add/sub/mul/div/mod ')&lt;/p&gt;

&lt;p&gt;if choice=='add':&lt;br&gt;
    add=num1+num2&lt;br&gt;
    print(add)&lt;/p&gt;

&lt;p&gt;elif choice=='sub':&lt;br&gt;
    sub=num1-num2&lt;br&gt;
    print(sub)&lt;/p&gt;

&lt;p&gt;elif choice=='mul':&lt;br&gt;
    mul=num1*num2&lt;br&gt;
    print(mul)&lt;/p&gt;

&lt;p&gt;elif choice=='div':&lt;br&gt;
    div=num1//num2&lt;br&gt;
    print(div)&lt;/p&gt;

&lt;p&gt;elif choice=='mod':&lt;br&gt;
    mod=num1%num2&lt;br&gt;
    print(mod)&lt;/p&gt;

&lt;p&gt;elif choice=='exp':&lt;br&gt;
    exp=num1**num2&lt;br&gt;
    print(exp)&lt;/p&gt;

&lt;p&gt;else:&lt;br&gt;
    print('option not available')&lt;/p&gt;

&lt;p&gt;eg2:Pass or Fail&lt;br&gt;
Using OR operator&lt;/p&gt;

&lt;p&gt;mark=int(input('Enter your Mark: '))&lt;/p&gt;

&lt;p&gt;if mark &amp;gt;= 91 or mark==100:&lt;br&gt;
    print('Grade A')&lt;br&gt;
elif mark &amp;gt; 81 or mark==90:&lt;br&gt;
    print('Grade B')&lt;br&gt;
elif mark &amp;gt;= 71 or mark==80:&lt;br&gt;
    print('Grade C')&lt;br&gt;
elif mark &amp;gt; 61 or mark==70:&lt;br&gt;
    print('Grade D')&lt;br&gt;
elif mark &amp;gt;= 46 or mark==60:&lt;br&gt;
    print('Grade E')&lt;br&gt;
elif mark &amp;lt;= 45:&lt;br&gt;
    print('Fail')&lt;br&gt;
else:&lt;br&gt;
    print('Mark value is invalid')&lt;/p&gt;

&lt;p&gt;Using AND operator&lt;br&gt;
mark=int(input('Enter your Mark: '))&lt;/p&gt;

&lt;p&gt;if mark &amp;gt;= 91 mark &amp;lt;=100:&lt;br&gt;
    print('Grade A')&lt;br&gt;
elif mark &amp;gt; 81 mark &amp;lt;=90:&lt;br&gt;
    print('Grade B')&lt;br&gt;
elif mark &amp;gt;= 71 mark &amp;lt;=80:&lt;br&gt;
    print('Grade C')&lt;br&gt;
elif mark &amp;gt; 61 mark&amp;lt;=70:&lt;br&gt;
    print('Grade D')&lt;br&gt;
elif mark &amp;gt;= 46 mark&amp;lt;=60:&lt;br&gt;
    print('Grade E')&lt;br&gt;
elif mark &amp;lt;= 45:&lt;br&gt;
    print('Fail')&lt;br&gt;
else:&lt;br&gt;
    print('Mark value is invalid')&lt;/p&gt;

&lt;p&gt;Conditionals:&lt;/p&gt;

&lt;p&gt;For Condition Check in Python,we can use 0 or 1&lt;br&gt;
0 means false -1/1 means True&lt;/p&gt;

&lt;p&gt;eg:&lt;br&gt;
Passmark=int(input('Enter your mark:  '))&lt;/p&gt;

&lt;p&gt;if Passmark &amp;gt;45 :&lt;br&gt;
    print('Pass')&lt;br&gt;
else:&lt;br&gt;
    print('Fail')&lt;/p&gt;

&lt;p&gt;Global Variable-accesed with anywhere in the program&lt;br&gt;
Local Variable-can be accessed only with function of the program&lt;br&gt;
eg:Global Variable&lt;/p&gt;

&lt;p&gt;Tiffan='IdlySambar' #global variable&lt;/p&gt;

&lt;p&gt;def Morningmenu1():      #def function&lt;br&gt;
    Tiffan='Kitchadi' #local variable&lt;br&gt;
    print(Tiffan)&lt;/p&gt;

&lt;p&gt;def Morningmenu2():&lt;br&gt;
    print(Tiffan)&lt;/p&gt;

&lt;p&gt;Morningmenu1()   #methodcalling&lt;br&gt;
Morningmenu2()&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Python tutorial 11.07.2024</title>
      <dc:creator>Arokya Naresh</dc:creator>
      <pubDate>Thu, 11 Jul 2024 12:14:03 +0000</pubDate>
      <link>https://dev.to/arokya_naresh_178a488116e/python-tutorial-11072024-47c9</link>
      <guid>https://dev.to/arokya_naresh_178a488116e/python-tutorial-11072024-47c9</guid>
      <description>&lt;ol&gt;
&lt;li&gt;Numeric Types (int, float, complex)
whole number-integers
decimal number-float
real+imaginary number-complex(space is not mandatory)eg:5+2j or 5 + 2j both are same &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;to check what datatype we can use type()&lt;br&gt;
eg:type(1)&lt;br&gt;
o/p int&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Text Type (strings)&lt;br&gt;
strings-collection of charcters,numbers,space&lt;br&gt;
using quotation we can represent a string&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Boolean Type (bool)&lt;br&gt;
True&lt;br&gt;
False&lt;br&gt;
if loop is active or not&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;None Type (None)&lt;br&gt;
None-we cannot create a empty variable&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How to check a data type ?&lt;br&gt;
By using type()&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What is a variable ?&lt;br&gt;
container of data value&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How to define it&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;valid, invalid variables&lt;br&gt;
can start or join with underscore _&lt;br&gt;
no special characters&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;assigning values&lt;br&gt;
eg:var=123&lt;br&gt;
AB 13&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;multiple assignment&lt;br&gt;
eg: name,age='AB',13 --&amp;gt;tuple datatype&lt;br&gt;
print(name,age)&lt;br&gt;
o/p:AB 13&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;unpacking&lt;br&gt;
eg:emp_name,emp_id=AB,1001,152&lt;br&gt;
print(emp_name,emp_id)&lt;br&gt;
o/p: ValueError: too many values to unpack&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;variable types&lt;br&gt;
from above eg1:print(type(emp_name))&lt;br&gt;
o/p:class str&lt;br&gt;
eg1:print(type(emp_id))&lt;br&gt;
o/p:class int&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Constants&lt;br&gt;
defining a value that remains same throughout the end of the progam.&lt;br&gt;
eg:PI=3.14 this is a constant value&lt;br&gt;
constant value defined by CAPITAL LETTER&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;NOTE:&lt;br&gt;
Python is case sensitive&lt;br&gt;
dynamic datatype will allocate different memory&lt;/p&gt;

&lt;h1&gt;
  
  
  is used for comments
&lt;/h1&gt;

</description>
      <category>python</category>
      <category>datatype</category>
    </item>
    <item>
      <title>Python tutorial (#print #printcommand #python)10.07.2024</title>
      <dc:creator>Arokya Naresh</dc:creator>
      <pubDate>Wed, 10 Jul 2024 11:23:41 +0000</pubDate>
      <link>https://dev.to/arokya_naresh_178a488116e/python-tutorial-print-printcommand-python10072024-1c7m</link>
      <guid>https://dev.to/arokya_naresh_178a488116e/python-tutorial-print-printcommand-python10072024-1c7m</guid>
      <description>&lt;p&gt;sep operator(used to seperate word with sepearte with spcial characters  like-,*)&lt;/p&gt;

&lt;p&gt;concatenation-add two strings&lt;/p&gt;

&lt;p&gt;escape sequence-used to print pattern&lt;/p&gt;

&lt;p&gt;Escape sequences allow you to include special characters in strings. &lt;br&gt;
To do this, simply add a backslash () before the character you want to escape.&lt;/p&gt;

&lt;p&gt;Raw string-used to print what exactly to be printed. this helps to print systempath&lt;/p&gt;

&lt;p&gt;In python,whatever input is given output will be a string so we need to do casting&lt;/p&gt;

&lt;p&gt;we cannot print string and integer together&lt;br&gt;
eg;&lt;br&gt;
print('abc'+123)&lt;br&gt;
this gives an error so we need todo typecasting&lt;/p&gt;

&lt;p&gt;print('abc'+str(123))&lt;br&gt;
o/p abc123&lt;/p&gt;

&lt;p&gt;printing with single,double,triple quote&lt;/p&gt;

&lt;p&gt;String Multiplication-we can multiply single word with '*'&lt;br&gt;
eg;&lt;br&gt;
print('hello '*5)&lt;/p&gt;

&lt;p&gt;Format&lt;br&gt;
name='ABC'&lt;br&gt;
print('My name is '+name)&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Python</title>
      <dc:creator>Arokya Naresh</dc:creator>
      <pubDate>Mon, 08 Jul 2024 04:15:03 +0000</pubDate>
      <link>https://dev.to/arokya_naresh_178a488116e/python-2d7e</link>
      <guid>https://dev.to/arokya_naresh_178a488116e/python-2d7e</guid>
      <description>&lt;p&gt;Python is an high-level interpreter and object oriented programming language used for various applications&lt;br&gt;
It have standard library&lt;/p&gt;

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