<?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: VIDHYA VARSHINI</title>
    <description>The latest articles on DEV Community by VIDHYA VARSHINI (@vidya_varshini).</description>
    <link>https://dev.to/vidya_varshini</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%2F3335546%2Fb57db567-ea58-4e1e-8619-2c19a656f04f.png</url>
      <title>DEV Community: VIDHYA VARSHINI</title>
      <link>https://dev.to/vidya_varshini</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vidya_varshini"/>
    <language>en</language>
    <item>
      <title>Day 6 of Python (Dictionary, Set and Hashing)</title>
      <dc:creator>VIDHYA VARSHINI</dc:creator>
      <pubDate>Sun, 15 Feb 2026 14:40:19 +0000</pubDate>
      <link>https://dev.to/vidya_varshini/day-6-of-python-dictionary-set-and-hashing-4n3i</link>
      <guid>https://dev.to/vidya_varshini/day-6-of-python-dictionary-set-and-hashing-4n3i</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is dictionary:&lt;/strong&gt; It is a collection used to store data in &lt;strong&gt;key:value pairs&lt;/strong&gt; and it is a built-in data type, mutable and ordered. &lt;/p&gt;

&lt;p&gt;Ex:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;id = { name = "Vidya",
       age : 21
       location : "Chennai"
       gender : "Female"
     }
print(id)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{'name': 'Vidya', 'age': 21, 'location': 'Chennai', 'gender': 'Female'}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Set:&lt;/strong&gt; It is a collection of items which is unordered, does not allow duplicate values and mutable.&lt;/p&gt;

&lt;p&gt;Ex:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;num = [1,1,2,2,2,3,3,5,5,5]
freq = {}

for i in num:
    if i in freq:
        freq[i] = freq[i] + 1
    else:
            freq[i] = 1
            print(freq)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{1: 2, 2: 3, 3: 2, 5: 1}

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Hashing:&lt;/strong&gt; It is a technique that takes a key and converts it into a fixed integer value (hash value). This hash value is used to decide where to store and quickly retrieve data in memory.&lt;br&gt;
Ex:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print(hash("Vidya"))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Hash collision:&lt;/strong&gt; Sometimes two different keys produce same hash, which causes collision, open addressing and probing.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Day 5 of Python(Tuple, Deep copy and Shallow copy)</title>
      <dc:creator>VIDHYA VARSHINI</dc:creator>
      <pubDate>Fri, 13 Feb 2026 02:32:15 +0000</pubDate>
      <link>https://dev.to/vidya_varshini/day-5-of-pythontuple-4ga2</link>
      <guid>https://dev.to/vidya_varshini/day-5-of-pythontuple-4ga2</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is tuple:&lt;/strong&gt; It is a collection of items which is ordered, immutable and allows duplicates. This can also store different data types. A tuple can be identified when it is separated by a comma and no need of bracket.&lt;/p&gt;

&lt;p&gt;Ex:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; num = 1,2,3,4,5,6
 print(num[2:5])
 print(num[3])
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(3, 4, 5)
4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Single tuple:&lt;/strong&gt; A tuple with only one item is called a single tuple.&lt;br&gt;
Ex:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;num = (1,)
print(type(num))

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

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;class 'tuple'&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Deep copy:&lt;/strong&gt; This creates a completely new copy of an object including all nested objects inside it.&lt;/p&gt;

&lt;p&gt;Ex:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import copy
a = [[1, 2], [89, 4]]   
b = copy.deepcopy(a)       
b[1][0] = 98


print( a)
print(b)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[[1, 2], [89, 4]]
[[1, 2], [98, 4]]

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Shallow copy:&lt;/strong&gt; This creates  a new outer object, but does not copy nested objects. Instead, it copies reference to them.&lt;/p&gt;

&lt;p&gt;Ex:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import copy
a = [[1, 2], [89, 4]]   
b = copy.copy(a)       
b[1][0] = 98


print( a)
print(b)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[[1, 2], [98, 4]]
[[1, 2], [98, 4]]

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

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>programming</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Day 4 of Python(for loop and string methods)</title>
      <dc:creator>VIDHYA VARSHINI</dc:creator>
      <pubDate>Fri, 13 Feb 2026 01:50:23 +0000</pubDate>
      <link>https://dev.to/vidya_varshini/day-4-of-pythonfor-loop-and-string-methods-5970</link>
      <guid>https://dev.to/vidya_varshini/day-4-of-pythonfor-loop-and-string-methods-5970</guid>
      <description>&lt;p&gt;&lt;strong&gt;for loop:&lt;/strong&gt; A for loop is used to repeat a block of code for each item in a sequence like list, tuple,string.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Syntax:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for var in range:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ex: Print numbers from 1 to 10&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for i in range(1,11):
   print(i)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1
2
3
4
5
6
7
8
9
10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Reverse a string:&lt;/strong&gt; &lt;br&gt;
To reverse a name,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;name = "Vidya"
rev = name[::-1]
print(rev)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;To reverse a number,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;num = 2356
rev = 0

while num &amp;gt; 0:
    rev = num % 10 + rev * 10
    num = num // 10

print(rev)

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

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;What is list: A list is a collection of items used to store items in single variable. This can store numbers, string. It is a built in data type. It is mutable and classified as ordered and unordered. &lt;br&gt;
Ex:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list = ["apple", "orange","banana","papaya"]
list[0] = "mango"
list[1] = "strawberry"
print(list)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;['mango', 'strawberry', 'banana', 'papaya']
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;String methods:&lt;/strong&gt; &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;append - add one element at the end.&lt;/li&gt;
&lt;li&gt;extend - add multiple elements. &lt;/li&gt;
&lt;li&gt;insert - insert element at specific index position.&lt;/li&gt;
&lt;li&gt;remove - removes the first occurence.&lt;/li&gt;
&lt;li&gt;pop - removes and return element.&lt;/li&gt;
&lt;li&gt;clear - removes all the elements.&lt;/li&gt;
&lt;li&gt;index - returns the index value.&lt;/li&gt;
&lt;li&gt;count - count the number of occurence.&lt;/li&gt;
&lt;li&gt;sort - sort list in place.&lt;/li&gt;
&lt;li&gt;reverse - reverse in place.&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Day 3 of Python(while loop)</title>
      <dc:creator>VIDHYA VARSHINI</dc:creator>
      <pubDate>Thu, 12 Feb 2026 07:36:58 +0000</pubDate>
      <link>https://dev.to/vidya_varshini/day-3-of-pythonwhile-loop-4hbh</link>
      <guid>https://dev.to/vidya_varshini/day-3-of-pythonwhile-loop-4hbh</guid>
      <description>&lt;p&gt;&lt;strong&gt;Ternary operator:&lt;/strong&gt; It is a one line way to write the if-else condition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Syntax: True value if (condition) else False value&lt;/strong&gt;&lt;br&gt;
Ex: To find a given number is odd or even&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if num%2 ==0:
    print("given number is even")
else:
    print("given number is odd")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, it can be written as&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var = "num is even" if(num%2 ==0) else "num is odd"
print (var)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;while loop:&lt;/strong&gt; A while loop is used when you want to repeat the code until it satisfies the condition as true.&lt;/p&gt;

&lt;p&gt;Ex: Print a number from 1 to 10&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;num = 1
while num&amp;lt;=10:
   print(num)
   num = num+1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1
2
3
4
5
6
7
8
9
10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ex: To print a table with given variable&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;num = int(input("enter a number "))
var = 1
while var&amp;lt;=5:
   print(num*var)
   var = var+1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;enter a number 3
3
6
9
12
15
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Day 2 of Python (Operators and Conditional Statements)</title>
      <dc:creator>VIDHYA VARSHINI</dc:creator>
      <pubDate>Thu, 05 Feb 2026 07:21:03 +0000</pubDate>
      <link>https://dev.to/vidya_varshini/day-2-of-python-operators-and-conditional-statements-5d0j</link>
      <guid>https://dev.to/vidya_varshini/day-2-of-python-operators-and-conditional-statements-5d0j</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is operators:&lt;/strong&gt; Operators in general are used to perform operations on values and variables.&lt;/p&gt;

&lt;p&gt;Types of operators:&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%2Fj985wvjpgoqhktf4bsrk.webp" 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%2Fj985wvjpgoqhktf4bsrk.webp" alt=" " width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Arithmetic operators:&lt;/strong&gt;  It is used to perform basic mathematical operations like addition, subtraction, multiplication etc.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Comparison operators:&lt;/strong&gt; It is used to compare values and it will return either true or false according to the given condition.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Logical operators:&lt;/strong&gt; It is used to perform Logical AND, Logical OR and Logical NOT operations. This is used to combine conditional statements.
4.** Assignment operators:** It is used to assign values to the variables. This is used to assign the value of right side of the expression to the left side operand.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Formatted string(f):&lt;/strong&gt; It is used to insert variables or values directly inside a string.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;name = input("What is your name ")
print("Your name is ",name)
age =int( input("What is your age "))
print("Your age is ",age)
gender = input("What is your gender ")
print("Your gender is ",gender)
print(f"Your name is {name} age {age} gender {gender}")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;What is your name Vidya
Your name is  Vidya
What is your age 20
Your age is  20
What is your gender Female
Your gender is  Female
Your name is Vidya age 20 gender Female
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By default, input from the user will be stored as string.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Typecasting:&lt;/strong&gt; It means converting from one data type to another. There are two types of typecasting are there : &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Implicit typecasting : It automatically converts from one data type to another without writing any extra code.&lt;/li&gt;
&lt;li&gt;Explicit typecasting : It is manually converting from one data type to another type by the programmer.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;String:&lt;/strong&gt; It is a sequence of characters used to represent data. This can be given inside single quote(' '), double quote(" ") and triple quote(""" """) for multiple strings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Indexing:&lt;/strong&gt; This means accessing the individual elements using their position number index position.&lt;br&gt;
&lt;strong&gt;Negative indexing:&lt;/strong&gt; This means accessing elements from the end of a sequence using negative numbers.&lt;br&gt;
&lt;strong&gt;Slicing:&lt;/strong&gt; This means extracting a part from a sequence like a string,list.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conditional Statements:&lt;/strong&gt; This is used to make decisions in a program. They help the program choose what to do based on the given condition.&lt;br&gt;
Types of conditional statements:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;if statement - This is used to execute code only if the condition is true.&lt;/li&gt;
&lt;li&gt;if-else statement - This is used when there are two choices.&lt;/li&gt;
&lt;li&gt;elif statement - This is used when there are multiple conditions.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Getting started with Python</title>
      <dc:creator>VIDHYA VARSHINI</dc:creator>
      <pubDate>Wed, 04 Feb 2026 06:51:55 +0000</pubDate>
      <link>https://dev.to/vidya_varshini/getting-started-with-python-1467</link>
      <guid>https://dev.to/vidya_varshini/getting-started-with-python-1467</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction:&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;What is programming:&lt;/strong&gt;  It is a way of communicating with the machine using binary code.&lt;br&gt;
&lt;strong&gt;What is interpreter:&lt;/strong&gt; An interpreter translates and executes code step-by-step instead of converting the whole program into machine code at once.&lt;br&gt;
&lt;strong&gt;What is compiler:&lt;/strong&gt; It is a program that translates high level source code into machine code (binary).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How python files run at backend:&lt;/strong&gt;  After entering as python3    filename, it will first convert into byte code. &lt;br&gt;
python.py → bytecode (.pyc) → executed by PVM&lt;br&gt;
This will run on every server.&lt;br&gt;
Python is both compiler and interpreted language. &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%2Fkck3th6lkkilu00qi66y.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%2Fkck3th6lkkilu00qi66y.gif" alt=" " width="1001" height="183"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;nano linux commands:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;pwd - print working directory (to check where the file is located).&lt;/li&gt;
&lt;li&gt;mkdir - make directory&lt;/li&gt;
&lt;li&gt;ls - list&lt;/li&gt;
&lt;li&gt;cd - change directory&lt;/li&gt;
&lt;li&gt;rmdir - remove directory&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;import this - displays the Zen of Python&lt;br&gt;
quit() - to get exit from the program.&lt;/p&gt;

&lt;p&gt;Indentation - It is the spaces (or tabs) given at the beginning of the line of code.&lt;/p&gt;

&lt;p&gt;Swapping of two variables:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;a = 17
b = 5
a = a+b
b = a-b
a = a-b
print(a,b)

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

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;5 17
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This can also be done using tuple method.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;a = 10
b = 5
a,b = b,a
print(a,b)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;5 10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>programming</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Exception Handling in Java</title>
      <dc:creator>VIDHYA VARSHINI</dc:creator>
      <pubDate>Tue, 20 Jan 2026 17:03:24 +0000</pubDate>
      <link>https://dev.to/vidya_varshini/exception-handling-in-java-4kpi</link>
      <guid>https://dev.to/vidya_varshini/exception-handling-in-java-4kpi</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is exception handling:&lt;/strong&gt; The term &lt;strong&gt;"exception"&lt;/strong&gt; is simply known as &lt;strong&gt;"exceptional event"&lt;/strong&gt;, which means it occurs during the  execution of a program, that disrupts the normal flow of the program's instructions. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;When an error occurs within a method, the method creates an object and hands it off to the runtime system. &lt;/li&gt;
&lt;li&gt;The object, called an exception object, contains information about the error, including its type and the state of the program when the error occurred. &lt;/li&gt;
&lt;li&gt;Creating an exception object and handing it to the runtime system is called throwing an exception.&lt;/li&gt;
&lt;li&gt;After a method throws an exception, the runtime system attempts to find something to handle it.&lt;/li&gt;
&lt;li&gt;The set of possible "somethings" to handle the exception is the ordered list of methods that had been called to get to the method where the the error occurred. The list of methods is known as the &lt;strong&gt;"call stack"&lt;/strong&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%2Fltf7egfngc5yord13wn5.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%2Fltf7egfngc5yord13wn5.gif" alt=" " width="288" height="193"&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;package exceptionhandling;

public class Arithmeticexception {

    public static void add(int a, int b) {
        System.out.println(a+b);
    }

    public static void sub(int a, int b) {
        System.out.println(a-b);
    }

    public static void divide(int a, int b) {
        System.out.println(a/b);
    }



    public static void main(String[] args) {
     int a = 10;
     int b = 5;
     add(a,b);
     sub( a, b);
     divide( a, b);

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

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;15
5
2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>java</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Abstraction in Java</title>
      <dc:creator>VIDHYA VARSHINI</dc:creator>
      <pubDate>Thu, 18 Dec 2025 17:03:32 +0000</pubDate>
      <link>https://dev.to/vidya_varshini/abstraction-in-java-2hbp</link>
      <guid>https://dev.to/vidya_varshini/abstraction-in-java-2hbp</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is abstraction:&lt;/strong&gt; It is the process of showing only necessary details and hiding internal implementation details. If one method is declared as abstract in a class, then whole class is defined as abstract class. Abstraction hides the complex details and shows only essential features.  &lt;/p&gt;

&lt;p&gt;The abstract keyword is a non-access modifier, used for classes and methods. &lt;br&gt;
&lt;strong&gt;Abstract class:&lt;/strong&gt; It is a restricted class where objects cannot be created. If it needs to be accessed, it must be inherited from another class. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Abstract method :&lt;/strong&gt; This can be used only in abstract class and it does not have a body. The body is provided by the subclass.&lt;/p&gt;

&lt;p&gt;We cannot create an object for an abstract class because it may contain abstract methods without implementation, which makes the class incomplete.&lt;/p&gt;

&lt;p&gt;Rules for abstraction:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Abstract - if a method doesn't have body, the method is abstract method.&lt;/li&gt;
&lt;li&gt;If atleast one method is abstract, then the entire class is abstract class.&lt;/li&gt;
&lt;li&gt;Abstract method don't have body and should not be given body.&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Method overriding in Java</title>
      <dc:creator>VIDHYA VARSHINI</dc:creator>
      <pubDate>Mon, 15 Dec 2025 11:43:48 +0000</pubDate>
      <link>https://dev.to/vidya_varshini/method-overriding-in-java-276p</link>
      <guid>https://dev.to/vidya_varshini/method-overriding-in-java-276p</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is method overriding:&lt;/strong&gt; When a subclass provides a specific implementation for a method that is already defined in its parent class, it is called method overriding. The overridden method in the subclass must have the same name, parameters, and return type as the method in the parent class. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rules for method overriding:&lt;/strong&gt;&lt;br&gt;
a) Name, parameters and return type must be of same type as parent.&lt;br&gt;
b) Static methods cannot be overridden.&lt;br&gt;
c) At runtime, Java selects the method based on the real object in      memory rather than the reference type.&lt;br&gt;
d) Method overriding requires inheritance.&lt;/p&gt;

&lt;p&gt;Static methods cannot be overridden, defining a static method in a subclass with same signature as in the super-class hides the super-class method.&lt;br&gt;
Instance methods can be overridden, but a subclass cannot override a super-class static method.&lt;br&gt;
A static method in a subclass with the same signature as a super-class static method hides the original method.&lt;br&gt;
Private methods cannot be overridden because they are not visible to sub-classes.&lt;br&gt;
A subclass method with the same name is treated as a new, independent method, unrelated to the parent class.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>java</category>
      <category>programming</category>
    </item>
    <item>
      <title>Access Modifier in Java</title>
      <dc:creator>VIDHYA VARSHINI</dc:creator>
      <pubDate>Mon, 15 Dec 2025 11:17:18 +0000</pubDate>
      <link>https://dev.to/vidya_varshini/access-modifier-in-java-2cjm</link>
      <guid>https://dev.to/vidya_varshini/access-modifier-in-java-2cjm</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is access modifier:&lt;/strong&gt; It is a keyword in Java that controls who can access a class, variable, method, or constructor. There are 4 types of access modifiers in Java. They are:&lt;br&gt;
a) public&lt;br&gt;
b) protected&lt;br&gt;
c) default&lt;br&gt;
d) private&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. public:&lt;/strong&gt; This can be accessed from anywhere(same class, same package, different package). It is used when a class or member should be visible to all.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. private:&lt;/strong&gt; Accessible only within the same class. Used for data hiding and security.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. default:&lt;/strong&gt; Accessible only within the same package. Used when access should be restricted to the package. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. protected:&lt;/strong&gt; Accessible within the same package and in sub-classes of other packages. Mainly used to support inheritance.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Package in Java</title>
      <dc:creator>VIDHYA VARSHINI</dc:creator>
      <pubDate>Mon, 15 Dec 2025 10:37:15 +0000</pubDate>
      <link>https://dev.to/vidya_varshini/package-in-java-585b</link>
      <guid>https://dev.to/vidya_varshini/package-in-java-585b</guid>
      <description>&lt;p&gt;What is package: A package is used to group related classes. It is like a folder in a file directory. These are used to avoid name conflicts and to write a better maintainable code. It is divided into two categories :&lt;br&gt;
a) Built-in package&lt;br&gt;
b) User-defined package&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Built-in package:&lt;/strong&gt; The Java API is a library of pre-written classes, that are free to use, included in the Java Development Environment.&lt;br&gt;
Some of the commonly used built-in packages are: &lt;br&gt;
a) java.lang&lt;br&gt;
b) java.io&lt;br&gt;
c) java.util&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;User-defined package:&lt;/strong&gt; These are the packages which are defined by the user. It helps us organize our own classes properly. We need to use user-defined packages because&lt;br&gt;
a) To organize large projects&lt;br&gt;
b) To avoid class name conflicts&lt;br&gt;
c) To improve code readability&lt;br&gt;
d) To control access using access modifiers&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>java</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>History of Java</title>
      <dc:creator>VIDHYA VARSHINI</dc:creator>
      <pubDate>Mon, 15 Dec 2025 09:51:22 +0000</pubDate>
      <link>https://dev.to/vidya_varshini/history-of-java-2l7b</link>
      <guid>https://dev.to/vidya_varshini/history-of-java-2l7b</guid>
      <description>&lt;p&gt;Java was started in 1991 by James Gosling as part of a research initiative called the Green Project. The main objective of this project was to create a programming language that could run on electronic devices such as televisions and set-top boxes. The team aimed to develop a language that was simple, reliable, secure, and independent of hardware platforms.&lt;/p&gt;

&lt;p&gt;During this early phase, the language was named Oak, inspired by an oak tree located outside James Gosling’s office. Oak emphasized portability and safety, two core principles that later became the foundation of Java.&lt;/p&gt;

&lt;p&gt;In 1995, Oak was renamed Java due to trademark issues and was officially released to the public. This release marked a major milestone because Java introduced the groundbreaking concept of platform independence through the Java Virtual Machine (JVM). Instead of compiling programs into machine-specific code, Java source code was compiled into bytecode, which could run on any system equipped with a JVM.&lt;/p&gt;

&lt;p&gt;This “write once, run anywhere” feature made Java especially attractive during the rapid expansion of the internet. As a result, Java applets became widely used for adding interactive and dynamic content to web pages.&lt;/p&gt;

</description>
      <category>computerscience</category>
      <category>java</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
