<?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: Tyagiquamar</title>
    <description>The latest articles on DEV Community by Tyagiquamar (@tyagiquamar).</description>
    <link>https://dev.to/tyagiquamar</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%2F924361%2Fc8412e06-8672-455c-a52b-0e7546619bd7.png</url>
      <title>DEV Community: Tyagiquamar</title>
      <link>https://dev.to/tyagiquamar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tyagiquamar"/>
    <language>en</language>
    <item>
      <title>The Ultimate Python Tutorial For Beginners Covering All The Basic Topics, From Variables To Classes &amp; Objects</title>
      <dc:creator>Tyagiquamar</dc:creator>
      <pubDate>Sun, 26 Mar 2023 16:14:28 +0000</pubDate>
      <link>https://dev.to/tyagiquamar/the-ultimate-python-tutorial-for-beginnerscovering-all-the-basic-topics-from-variables-to-classes-objects-38p4</link>
      <guid>https://dev.to/tyagiquamar/the-ultimate-python-tutorial-for-beginnerscovering-all-the-basic-topics-from-variables-to-classes-objects-38p4</guid>
      <description>&lt;p&gt;Programming is basically designing and building an executable computer program that is used to accomplish a specific computing task to generate some results. For example, we design a calculator that can be used to perform different arithmetic operations. The need for programming occurs when we try to communicate and instruct the computer to do some tasks we want but the problem is computer only understands the binary language. Programming languages do the work for us by converting the high-level language to binary. One of the best and easy to work with programming language is python.&lt;/p&gt;

&lt;p&gt;Python is an interpreted, high-level, and general-purpose programming language. It is created by Guido van Rossum and was first released in 1991. It is very easy to understand, from a beginner's perspective python is the best choice to start. It uses an interpreter to convert the high-level language into a low-level language. It has become famous because of its one-liners, Vast amount of packages, and active community of developers.&lt;/p&gt;

&lt;p&gt;Python provides lots of advantages for its developers, below is a list containing some of them.&lt;/p&gt;

&lt;p&gt;Advantages&lt;br&gt;
Versatile Language Can be used for different purposes.&lt;br&gt;
Open Source with an Active Community of developers.&lt;br&gt;
Has All the Libraries You Can Imagine.&lt;br&gt;
Large and distinct amount of modules.&lt;br&gt;
Easy to learn and extend.&lt;br&gt;
Object-oriented with simple syntax.&lt;br&gt;
Well, You have seen the advantages of python but still wondering why should you learn it. below are some reasons which can justify it.&lt;/p&gt;

&lt;p&gt;Why One Should Learn Python?&lt;br&gt;
High salary Job Offers.&lt;br&gt;
Data Scientists First Love.&lt;br&gt;
can do scripting &amp;amp; automation.&lt;br&gt;
Make Data Preprocessing easy.&lt;br&gt;
Supports Testing.&lt;br&gt;
Used for Web Development.&lt;br&gt;
It is simple &amp;amp; easy to learn.&lt;br&gt;
Have a massive community of people.&lt;br&gt;
High In Demand.&lt;br&gt;
Now, That You Have Understood What and Why We Need Python. It's The Right Time To Go Forward and Start With Its Basics.&lt;/p&gt;

&lt;p&gt;--------------TABLE OF CONTENTS---------------&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;How Does Python Works??&lt;/li&gt;
&lt;li&gt;Variables&lt;/li&gt;
&lt;li&gt;Operators
      ▶ Types of Operator&lt;/li&gt;
&lt;li&gt;Comments
▶ Single Line Comment
▶ Multiline Comment&lt;/li&gt;
&lt;li&gt;Taking Input and Printing Output&lt;/li&gt;
&lt;li&gt;Data Types
▶ Numbers
▶ Strings
▶ List
▶ Tuples
▶ Set
▶ Dictionaries&lt;/li&gt;
&lt;li&gt;Indexing &amp;amp; Slicing&lt;/li&gt;
&lt;li&gt;Type Conversion&lt;/li&gt;
&lt;li&gt;Conditionals
10.Loops
▶ for
   ▶▶ range
   ▶▶ enumerate 
▶ while &lt;/li&gt;
&lt;li&gt;Functions
▶ Recursions
▶ Lambda &lt;/li&gt;
&lt;li&gt;Package
▶ pip&lt;/li&gt;
&lt;li&gt;random module&lt;/li&gt;
&lt;li&gt;Files and Their Operations&lt;/li&gt;
&lt;li&gt;Class &amp;amp; Object&lt;/li&gt;
&lt;li&gt;What's Next&lt;/li&gt;
&lt;li&gt;How Does Python Works??
Python is an interpreted language, which means it uses an interpreter to convert the Human Understandable Code into Machine Understandable Code.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Best Advantage of using an interpreted language is that they are platform-independent. Unlike C++/C Where You have to Compile the Code, and after a successful compilation a new file gets created that contains the Machine Code that is understood by the CPU. In Python, Instead of translating the code into Machine Code, The Code is translated into bytecode.&lt;/p&gt;

&lt;p&gt;Byte Code Is a low-level set of instructions that can be executed by an interpreter. It is executed on virtual memory.&lt;/p&gt;

&lt;p&gt;The Source Code of Python is compiled into byte code, and then with the help of Python Virtual Memory, it is again converted into the machine code that the computer can understand.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Variables
In python, a variable is the name of a memory location that is assigned with some value. For Example:- a = 5, where a is the name of the variable that is assigned with the value 5. You can refer to a variable as a container that can store any value.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Variable Operator Value&lt;br&gt;
   a       =        20&lt;br&gt;&lt;br&gt;
   b       =        60 &lt;br&gt;
   c       =       'Ram'&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Operators
Operators are a set of symbols that are used to define a computation task between variables.
Ex:- a+b, here + is an operator, that adds values of a &amp;amp; b
c / d, here / is an operator, that divides c from d&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There are 7 types of operators available in python —&lt;/p&gt;

&lt;p&gt;Arithmetic operators * + / ** % -&lt;br&gt;
Assignment operators = += =+ -= -= !=&lt;br&gt;
Comparison operators &amp;lt; &amp;gt; !&amp;lt; !&amp;gt; =&amp;lt; &amp;gt;= ==&lt;br&gt;
Bitwise operators &amp;amp; ^ ~ &amp;lt;&amp;lt; &amp;gt;&amp;gt;&lt;br&gt;
Identity operators is ,is not&lt;br&gt;
Logical operators and or not&lt;br&gt;
Membership operators in ,not in&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Comments
Comments are part of source code that is ignored by the compiler. They are mostly used to explain the code to others. Comments make your code more readable.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There are two types of comments, Single Line and Multiline. In python, you can write comments with the help of # and ''' '''&lt;/p&gt;

&lt;h1&gt;
  
  
  Single Line Comment
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Another Single Line Comment
&lt;/h2&gt;

&lt;p&gt;''' Single Line Comment '''&lt;/p&gt;

&lt;h3&gt;
  
  
  An
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Example of
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Multiline Comment Using '#'
&lt;/h3&gt;

&lt;p&gt;''' An &lt;br&gt;
    Example of &lt;br&gt;
    Multiline Comment '''&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Taking Input and Printing Output
Input allows a user to insert a value into a program and output allows users to retrieve values back from the program. To Take Inputs from the user we use input() function. To Show the Output we user print() statement.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;a = 5&lt;br&gt;
b = int(input("Enter a Number:-"))&lt;br&gt;
sum = a+b&lt;/p&gt;

&lt;h2&gt;
  
  
  print(sum)
&lt;/h2&gt;

&lt;p&gt;Enter a Number:- 10&lt;br&gt;
15&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Data Types&lt;br&gt;
a data type is an attribute of data that explains the computer how the developers intended to use the data. In simple words, data type explains the type of value a variable has. There are mainly 6 types of data types in python.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Numbers&lt;br&gt;
It is one of the basic and most used data types in python. Integers, Floats, and Complex Numbers fall under the category of numbers. To check the type of variable you can use type()&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                         OUTPUT
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;a = 10&lt;br&gt;
print(type(a))                &lt;br&gt;
b = 4.5&lt;br&gt;
print(type(b))                &lt;br&gt;
c = 1+6j&lt;br&gt;
print(type(c))                &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Strings&lt;br&gt;
A Sequence of Unicode Characters is called a string. To Define a string in python we use a single or double quote end with the same.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;a = 'R'                                OUTPUT&lt;br&gt;
print(type(a))                       &lt;br&gt;
b = 'Python Programming'&lt;br&gt;
print(type(b))                       &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;List
The list is an ordered sequence of items. They are mutable, which means you can delete and update any element from the list. It can store multiple items from different data types at a time. To Defined a list we use [ ]&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;data = [98, 'Karl', 85.6,98]                   OUTPUT&lt;br&gt;
print(type(data))                        &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Tuple
A Tuple is similar to a list the only difference is they are immutable, which means you can’t change any element from a tuple. They are very important in scenarios where your data is important and you don’t want to update it. To Defined a tuple we use ( )&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;data = (9,'Kat',79.89,9)                   OUTPUT&lt;br&gt;
print(type(data))                      &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Set
It is an unordered sequence of items. It doesn’t have any repeated values, unlike lists and tuples. There are many operations that you can perform through sets like union, intersection, etc. Set Object is not subscribable. To Define a set we use { }&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;data = {9,10,11}                          OUTPUT&lt;br&gt;
print(type(data))                      &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Dictionary
It is an unordered collection of keys and values. Dictionaries are mostly used to store large amounts of data. To Defined a Dictionary we use {KEY:VALUE}&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;dictt1 = {'id' : 'RF5701', 'name' : 'Karl', 'batch':879}&lt;br&gt;
dictt2 = {&lt;br&gt;
          'id' : ['RF5701','RF5702'],&lt;br&gt;
          'name' : ['Karl', 'Kat'],&lt;br&gt;
          'batch' : [879,880] &lt;br&gt;
           }&lt;br&gt;
print(dictt2.keys())   ### Prints all the keys in a list&lt;br&gt;
print(dictt2.values()) ### Prints all the values&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Indexing and Slicing
Indexing is the process of fetching a value of a given index. There are two types of indexing- Positive and Negative. Positive indexing starts from the 0th index and Negative indexing starts from the last index.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Slicing is the process of retrieving values from a given range. The Syntax from slicing is [BottomIndex:TopIndex:Step] , here the bottom index is the lower index value and TopIndex is the higher index value and Step represents how many items it Jump or skips each time. At Default The Step is 0. The top index value is always dropped which retrieving values.&lt;/p&gt;

&lt;p&gt;Let’s understand each one —&lt;/p&gt;

&lt;p&gt;data = [1,2,3,4,5,6,7,8,9]&lt;br&gt;&lt;br&gt;
''' Indexing '''        OUTPUT          RESULT&lt;br&gt;
print(data[0])            1     Fetch The Value at index 0&lt;br&gt;
print(data[-1])           9     Fetch the value at last index&lt;br&gt;
print(data[-3])           7     Fetch the value at last third index&lt;/p&gt;

&lt;p&gt;''' Slicing '''&lt;br&gt;
print(data[0:1])          1     Value of 0th index&lt;br&gt;
print(data[1:4])         [2,3]  Values from 1st index to 3rd index&lt;br&gt;
print(data[0:8:2])    [0,2,4,6] Values from 0th index to 7th index                              _                                               with a Jump of 2&lt;br&gt;
print(data[0:-2:2])   [0,2,4,6]    "" (Negative Indexing)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Type Conversion&lt;br&gt;
It is the process of converting a data structure into another.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;             CODE        OUTPUT
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;a = 2               type(a)    &lt;br&gt;
b = float(2)        type(b)    &lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;c = str(b)          type(c)    &lt;br&gt;
d = list(c)         type(d)    &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Conditionals
Conditional helps us to perform some computation tasks based on some given condition. in python, we have if statements to perform conditional tasks.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;if condition:&lt;br&gt;&lt;br&gt;
   task&lt;br&gt;
else:&lt;br&gt;
   task&lt;br&gt;
----------Example-------------&lt;br&gt;
if rain:&lt;br&gt;
    Stay&lt;br&gt;
else: &lt;br&gt;
    Go&lt;br&gt;
--------Combining Multiple if--------&lt;br&gt;
if rain and thunder:&lt;br&gt;
    Stay:&lt;br&gt;
elif rain:&lt;br&gt;
    Go With Umbrella&lt;br&gt;
else:&lt;br&gt;
    Go&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Loops&lt;br&gt;
Loops Are Used to perform a certain task multiple times. They provide code reusability. With Loops, a Small Chunk of Code Can Perform Big Tasks.&lt;br&gt;
There are two types of loops in python:-&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For Loop&lt;br&gt;
a For Loop Iterates over something on a given range. to define a for loop we use for keyword. Syntax:-&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;for attribute in range(lower_range, upper_range):&lt;/p&gt;

&lt;h2&gt;
  
  
          Task
&lt;/h2&gt;

&lt;p&gt;for i in range(0,10):&lt;br&gt;
        print(i)  ## Prints Numbers from 0 to 9&lt;br&gt;
range(): It returns a sequence of numbers based on the range given. It starts with the lower range and then increments it every time by one until the top range is met. The Top Range Values Always got dropped.&lt;/p&gt;

&lt;p&gt;range function is good when you need vales but what should you do if you need both values and index ??&lt;/p&gt;

&lt;p&gt;Enumerate(): It is used to iterate over an element and return index and value of each index.&lt;/p&gt;

&lt;p&gt;lst = [1,2,3,4,5]&lt;br&gt;
for index, value in enumerate(lst):&lt;br&gt;
          print("At Index", index, "The Value is ",value)&lt;br&gt;
''' The Above Code Will Return The Index and Value At Each Index of the list&lt;br&gt;
OUTPUT will be &lt;br&gt;
At Index 0 The Value is  1&lt;br&gt;
At Index 1 The Value is  2&lt;br&gt;
At Index 2 The Value is  3&lt;br&gt;
At Index 3 The Value is  4&lt;br&gt;
At Index 4 The Value is  5&lt;br&gt;
'''&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;While Loop
It iterates over something until the condition is true or false.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;while True:&lt;/p&gt;

&lt;h2&gt;
  
  
        Task
&lt;/h2&gt;

&lt;p&gt;i = 0&lt;br&gt;
while i&amp;lt;10:&lt;br&gt;
    i = i+1  ## The Loop Will Run Until i value becomes equals to&lt;br&gt;
                     10, Means it will run 10 times.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Functions
It is a block of code that only executes when called. You Can Pass, Put and receive data from a function. Functions make source code more structural and readable. They Provide Code reusability and Abstraction.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There are two parts of functions — Function Definition, Where the function body lies and Function Calling Through which the function is called.&lt;/p&gt;

&lt;p&gt;To create a function we use def keyword.&lt;/p&gt;

&lt;p&gt;def function_name(attributes):              ## Parameters&lt;br&gt;
       task&lt;/p&gt;

&lt;h2&gt;
  
  
  function_name(attributes)                   ## Arguments
&lt;/h2&gt;

&lt;p&gt;def add(x,y):&lt;br&gt;
     sum = x+y&lt;br&gt;
print(add(6,9))&lt;br&gt;
'''OUTPUT&lt;br&gt;
15 &lt;br&gt;
'''&lt;br&gt;
Recursive Function&lt;br&gt;
It is a kind of function that calls itself recursively. In a recursive function, there are at least two calling statements. One inside the function and the other outside the function.&lt;/p&gt;

&lt;p&gt;def function():&lt;br&gt;
        ------&lt;br&gt;
        ------&lt;br&gt;
        function()      ## Inside the function calling&lt;/p&gt;

&lt;h2&gt;
  
  
  function()     ## Calling (At Start)
&lt;/h2&gt;

&lt;p&gt;----Program To Check Palindrome Using Recursion in Python------&lt;br&gt;
def ispalindrome(word):&lt;br&gt;
    if word[0] != word[-1]: return False&lt;br&gt;
    if len(word) &amp;lt; 2: return True&lt;br&gt;
    return ispalindrome(word[1:-1])&lt;/p&gt;

&lt;p&gt;print(ispalindrome('152'))&lt;br&gt;
Lambda Function&lt;br&gt;
Lambda Function is a function that is defined with a name. It is also named an anonymous function. It has no body and doesn’t require def keyword for definition. It can take up to any number of arguments but only one expression.&lt;/p&gt;

&lt;p&gt;''' Program To Check Whether a Number is Even or not '''&lt;br&gt;
even_or_not = lambda num : num%2-==0&lt;/p&gt;

&lt;h2&gt;
  
  
  print(even_or_not(5))
&lt;/h2&gt;

&lt;p&gt;False&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Package
A Package in python is a collection of modules and functions that are put together to perform a certain task. It is basically a directory with python files and a file named &lt;strong&gt;init&lt;/strong&gt;.py that means every directory inside the python path with file &lt;strong&gt;init&lt;/strong&gt;.pyconsidered as a python package. You Can Create your own package or use the inbuilt packages. Python also offers you the ability to use packages created by other developers.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;PIP is a package management system that is used to install and manage external libraries in python.&lt;/p&gt;

&lt;h2&gt;
  
  
  pip install PACKAGE_NAME
&lt;/h2&gt;

&lt;p&gt;pip install pandas &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;random module
it is an inbuilt module in python that is mainly used to generate random numbers within a range. It provides many different functions that provide randomness to your source code. Like any other module or library To Use it you first have to import it. import random&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;------ Some of the most used random module functions ------&lt;br&gt;
import random&lt;br&gt;
''' Generate a random integer between the given range '''&lt;br&gt;
print(random.randint(1,10))           ## 3&lt;br&gt;
print(random.randrange(1,10,5))       ## 15  (With Step)&lt;br&gt;
''' Generate a random number between 0 and 1 '''&lt;br&gt;
print(random.random())&lt;br&gt;
''' Save the state of random number ''&lt;br&gt;
random.seed(100)&lt;br&gt;
''' Select a random choice '''&lt;/p&gt;

&lt;h2&gt;
  
  
  random.choice(DATATYPE)
&lt;/h2&gt;

&lt;p&gt;print(random.choice([1,2,3,4,5]))       ## 4&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Files &amp;amp; Operations
A file is a collection of data stored in one unit or location. in general, we divided files into two parts — text and binary files. Text files are simple files that you own and Binary Files Contains data that is only readable by computers. In python to open a file we have open() and to close files we have close()&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There are different modes in which you can open a file Like Write(w), Read (r), Append (a), etc.&lt;/p&gt;

&lt;p&gt;--------- Reading a File --------&lt;br&gt;
open("FILEPATH/FILENAME.txt")&lt;br&gt;
--------- Reading a File in append Mode --------&lt;br&gt;
open("FILEPATH/FILENAME.txt","a")   &lt;/p&gt;

&lt;p&gt;--------- Opening a File With Handling Exceptions --------&lt;br&gt;
try:&lt;br&gt;
   f = open("FILEPATH/FILENAME.txt", "a")&lt;br&gt;
      #### Some Tasks&lt;br&gt;
finally:&lt;br&gt;
   f.close()&lt;br&gt;
--------- The Best Way To Open and Close File ------&lt;br&gt;
with open("FILEPATH/FILENAME.txt", "a", encoding='utf-8') as f:&lt;br&gt;
                  -------&lt;br&gt;
                  -------&lt;br&gt;
                  Some Task&lt;br&gt;
                  --------&lt;br&gt;
                  f.close()&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Class &amp;amp; Object
Class &amp;amp; Object both are key parts of Object-Oriented Programming. A Class Works as a blueprint for an object whether an object is an instance of the class. For example, if you consider Employee as a class then Different Employees With Salary, Age, Experience, Department are objects.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A Class Is similar to a function the difference is that to create a class you will use class keyword.&lt;/p&gt;

&lt;p&gt;class Data:&lt;br&gt;
       -----&lt;br&gt;
       -----&lt;br&gt;
You Can Create a Function Inside the class too. a Function that is defined inside a class called a module. Also, variables inside the class are called class attributes.&lt;/p&gt;

&lt;p&gt;class Data:&lt;br&gt;
      name = 'Ram'&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  def __init__(self,age,salary):             ##Constructor
       self.age  = age
       self.salary = salary
  def show(self):
     print(self.age)
     print(self.salary)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;init&lt;/strong&gt; is a reserved method for classes in python that works as a constructor. This method is automatically called when the source code executes. It is mostly used to initialize variables inside the class.&lt;/p&gt;

&lt;p&gt;Objects Are the instance of the class. With the help of an object, you can access both attributes and methods of the class. To create an object for the class you need to follow the syntax : Object_name = Class_name(values)&lt;/p&gt;

&lt;p&gt;class Data:&lt;br&gt;
      name = 'Ram'&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  def __init__(self,age,salary):             ##Constructor
       self.age  = age
       self.salary = salary
  def show(self):
     print(self.age)
     print(self.salary)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;obj = Data(29,3000)&lt;br&gt;
print(obj.name)&lt;/p&gt;

&lt;h2&gt;
  
  
  obj.show()
&lt;/h2&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Guide to crack GSOC(Google summer of code).</title>
      <dc:creator>Tyagiquamar</dc:creator>
      <pubDate>Sat, 21 Jan 2023 12:25:19 +0000</pubDate>
      <link>https://dev.to/tyagiquamar/guide-to-crack-gsocgoogle-summer-of-code-2lg5</link>
      <guid>https://dev.to/tyagiquamar/guide-to-crack-gsocgoogle-summer-of-code-2lg5</guid>
      <description>&lt;p&gt;Google Summer of Code (GSOC) is a highly competitive program that provides students with the opportunity to work on open-source projects during the summer. To crack GSoC, it's important to have a solid understanding of the technology and programming languages that are relevant to the project you're applying for, as well as a strong portfolio of related work.&lt;/p&gt;

&lt;p&gt;Here are a few resources that can help you to crack GSoC:&lt;/p&gt;

&lt;p&gt;The GSoC website: The official website provides detailed information about the program, including the application process, timelines, and frequently asked questions.&lt;/p&gt;

&lt;p&gt;GSoC organization's website: The website of the organization you are applying to will have more specific information about the project you are applying for and their requirement.&lt;/p&gt;

&lt;p&gt;Open-source community: Participating in open-source communities is a great way to gain experience and to learn about different projects and technologies. Participating in the community will give you the opportunity to work on real-world projects and to learn from experienced developers.&lt;/p&gt;

&lt;p&gt;Study material: There are many resources available online to help you learn about different technologies and programming languages, such as tutorials, documentation, and online courses.&lt;/p&gt;

&lt;p&gt;Mentors: Reach out to the mentors of the organization and ask for guidance. They may be able to provide you with valuable advice and resources to help you prepare for GSoC.&lt;/p&gt;

&lt;p&gt;Ultimately, cracking GSoC requires a combination of technical skills, passion for open-source, and good communication skills. By utilizing these resources and putting in the time and effort to learn and practice, you can increase your chances of success in the program.&lt;/p&gt;

</description>
      <category>gsoc</category>
      <category>opensource</category>
      <category>programming</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>Using coding pattern for dsa.</title>
      <dc:creator>Tyagiquamar</dc:creator>
      <pubDate>Sat, 21 Jan 2023 12:19:49 +0000</pubDate>
      <link>https://dev.to/tyagiquamar/using-coding-pattern-for-dsa-1fe2</link>
      <guid>https://dev.to/tyagiquamar/using-coding-pattern-for-dsa-1fe2</guid>
      <description>&lt;p&gt;Using coding patterns to crack coding interviews is a powerful strategy that can help you to stand out from other candidates. Coding patterns are common solutions to common problems, and they can be used to solve a wide variety of coding challenges. By understanding and mastering these patterns, you can improve your chances of success in technical interviews.&lt;/p&gt;

&lt;p&gt;One effective way to use coding patterns in interviews is to practice solving problems that are similar to the types of questions that are commonly asked in interviews. This will help you to become more familiar with the patterns and to understand how to apply them in different situations. Leetcode is a great resource for this, as it offers a wide variety of problems that are similar to those found in technical interviews.&lt;/p&gt;

&lt;p&gt;Another important aspect of using coding patterns in interviews is to understand the trade-offs and limitations of each pattern. This will help you to make informed decisions about which pattern to use in a given situation and how to optimize your solution.&lt;/p&gt;

&lt;p&gt;It's also important to understand how to communicate your thought process and solution clearly to the interviewer. This is crucial as it will showcase your understanding of the problem and your ability to think through the problem and explain it well.&lt;/p&gt;

&lt;p&gt;In conclusion, using coding patterns to crack coding interviews is a powerful strategy that can help you to stand out from other candidates. By practicing similar problems, understanding trade-offs and limitations of each pattern, and clearly communicating your thought process, you can improve your chances of success in technical interviews.&lt;/p&gt;

</description>
      <category>html</category>
      <category>webdev</category>
      <category>frontend</category>
    </item>
    <item>
      <title>Guide for using Leetcode.</title>
      <dc:creator>Tyagiquamar</dc:creator>
      <pubDate>Sat, 21 Jan 2023 12:17:28 +0000</pubDate>
      <link>https://dev.to/tyagiquamar/guide-for-using-leetcode-1lj3</link>
      <guid>https://dev.to/tyagiquamar/guide-for-using-leetcode-1lj3</guid>
      <description>&lt;p&gt;Leetcode is a popular platform for preparing for technical interviews and improving your coding skills. It offers a wide variety of problems, ranging from easy to hard, and in different categories such as algorithms, data structures, and databases. To use Leetcode effectively, it's important to have a solid understanding of the coding patterns that are commonly used in the problems.&lt;/p&gt;

&lt;p&gt;One effective way to use Leetcode is to start with easy problems and gradually increase the difficulty level. This will help you to build a strong foundation in the basics of algorithms and data structures. It's also a good idea to focus on one category at a time, such as sorting and searching, before moving on to the next.&lt;/p&gt;

&lt;p&gt;Another important aspect of using Leetcode effectively is to practice solving problems in different programming languages. This will not only help you to become more proficient in different languages, but it will also help you to understand how to approach problems in different ways.&lt;/p&gt;

&lt;p&gt;Once you have a good understanding of the basics, it's time to tackle the harder problems. These problems will often require you to think outside of the box and come up with new and innovative solutions. It's important to take your time and think through the problem carefully before jumping into the solution.&lt;/p&gt;

&lt;p&gt;Another way to increase your coding skill is to practice solving problems in a timed setting. This will help you to improve your speed and efficiency, which are important skills for technical interviews.&lt;/p&gt;

&lt;p&gt;Lastly, it's important to review your solutions and look for ways to improve them. This will help you to understand the problem better and to learn from your mistakes.&lt;/p&gt;

&lt;p&gt;In conclusion, using Leetcode effectively requires a combination of practice, focus, and perseverance. By starting with easy problems, focusing on one category at a time, practicing in different languages, tackling harder problems, and reviewing your solutions, you can improve your coding skills and increase your chances of success in technical interviews.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>gratitude</category>
    </item>
    <item>
      <title>Practice Data Structure and Algorithm effectively.</title>
      <dc:creator>Tyagiquamar</dc:creator>
      <pubDate>Sat, 21 Jan 2023 12:13:21 +0000</pubDate>
      <link>https://dev.to/tyagiquamar/practice-data-structure-and-algorithm-effectively-4i0g</link>
      <guid>https://dev.to/tyagiquamar/practice-data-structure-and-algorithm-effectively-4i0g</guid>
      <description>&lt;p&gt;Data structures and algorithms are crucial concepts in computer science, and mastering them is essential for any software developer. However, it can be challenging to know where to start and how to practice effectively. In this blog post, we will discuss some tips on how to practice data structures and algorithms to become proficient in them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the basics
&lt;/h2&gt;

&lt;p&gt;Before diving into advanced data structures and algorithms, it is essential to understand the basics. This includes understanding the different types of data structures, such as arrays, linked lists, stacks, queues, and trees. It also includes understanding the basic algorithms, such as sorting and searching algorithms.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use online resources
&lt;/h2&gt;

&lt;p&gt;There are many online resources available that can help you learn and practice data structures and algorithms. Websites like HackerRank, LeetCode, and CodeForces offer a wide range of problems that you can solve to improve your skills. These problems range from easy to challenging, so you can start with the easy ones and work your way up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practice coding challenges
&lt;/h2&gt;

&lt;p&gt;Another way to practice data structures and algorithms is to participate in coding challenges. These challenges can be found on websites like CodeForces, TopCoder, and CodeSignal. These challenges are great for testing your skills and getting feedback on your code.&lt;/p&gt;

&lt;p&gt;Implement data structures and algorithms from scratch&lt;br&gt;
One of the best ways to practice data structures and algorithms is to implement them from scratch. This will help you understand how they work and how to use them effectively. You can start by implementing basic data structures like linked lists and stacks and then move on to more advanced data structures like trees and graphs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read books and articles
&lt;/h2&gt;

&lt;p&gt;Reading books and articles on data structures and algorithms can also help you improve your skills. There are many books available that cover the basics of data structures and algorithms, as well as more advanced topics. Reading these books can help you understand the concepts better and give you a deeper understanding of the subject.&lt;/p&gt;

&lt;p&gt;In conclusion, practicing data structures and algorithms is crucial for any software developer. By starting with the basics, using online resources, participating in coding challenges, implementing data structures and algorithms from scratch, and reading books and articles, you can improve your skills and become proficient in data structures and algorithms. With consistent practice, you can become an expert in these concepts and excel in your career as a software developer&lt;/p&gt;

</description>
      <category>frontend</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>career</category>
    </item>
    <item>
      <title>DSA Blind75, 2 Pointer Algo</title>
      <dc:creator>Tyagiquamar</dc:creator>
      <pubDate>Tue, 13 Sep 2022 15:00:22 +0000</pubDate>
      <link>https://dev.to/tyagiquamar/dsa-blind75-2-pointer-algo-336k</link>
      <guid>https://dev.to/tyagiquamar/dsa-blind75-2-pointer-algo-336k</guid>
      <description>&lt;p&gt;On the second day of blind 75. I learnt about 2 pointer technique.&lt;br&gt;
it uses two pointer two reduce iterations to one.&lt;br&gt;
&lt;strong&gt;When to apply two pointer/identify&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Used in array, strings etc.&lt;/li&gt;
&lt;li&gt;Used if input is sorted and we are comparing.&lt;/li&gt;
&lt;li&gt;Swapping, partition, removing duplicate or palindrome.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Explaination:-&lt;br&gt;
&lt;a href="https://medium.com/@timpark0807/leetcode-is-easy-two-pointers-90b9b0f2eb43"&gt;https://medium.com/@timpark0807/leetcode-is-easy-two-pointers-90b9b0f2eb43&lt;/a&gt;&lt;br&gt;
&lt;a href="https://youtu.be/KLlXCFG5TnA"&gt;https://youtu.be/KLlXCFG5TnA&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Problems done&lt;/strong&gt;&lt;br&gt;
1.Two sum.&lt;br&gt;
2.Palindrome string.&lt;br&gt;
2.removing duplicates from sorted array.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Beginning of a new journey</title>
      <dc:creator>Tyagiquamar</dc:creator>
      <pubDate>Sun, 11 Sep 2022 11:21:20 +0000</pubDate>
      <link>https://dev.to/tyagiquamar/beginning-of-a-new-journey-4fp4</link>
      <guid>https://dev.to/tyagiquamar/beginning-of-a-new-journey-4fp4</guid>
      <description>&lt;p&gt;Hello everyone, this is my first dev post. I have started my journey to become a software engineer. Currently as being a CSE student i am learning DSA. I also want to learn flutter after doing dsa.&lt;/p&gt;

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