<?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: pagarsach14</title>
    <description>The latest articles on DEV Community by pagarsach14 (@pagarsach14).</description>
    <link>https://dev.to/pagarsach14</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%2F429727%2Fbf9c9a42-365b-4d4d-a4c2-38b0ed599019.png</url>
      <title>DEV Community: pagarsach14</title>
      <link>https://dev.to/pagarsach14</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pagarsach14"/>
    <language>en</language>
    <item>
      <title>PYTHON METHOD VS FUNCTION</title>
      <dc:creator>pagarsach14</dc:creator>
      <pubDate>Sat, 31 Oct 2020 15:44:52 +0000</pubDate>
      <link>https://dev.to/pagarsach14/python-method-vs-function-30fd</link>
      <guid>https://dev.to/pagarsach14/python-method-vs-function-30fd</guid>
      <description>&lt;p&gt;&lt;a href="https://www.pythonslearning.com/2020/07/method-vs-function-python.html"&gt;python method vs function&lt;/a&gt;&lt;br&gt;
Function is block of code that is also called by its name. (independent)&lt;br&gt;
The function can have different parameters or may not have any at all. If any data (parameters) are passed, they are passed explicitly.&lt;br&gt;
It may or may not return any data.&lt;br&gt;
Function does not deal with Class and its instance concept.&lt;br&gt;
Python Method&lt;/p&gt;

&lt;p&gt;Method is called by its name, but it is associated to an object (dependent).&lt;br&gt;
A method is implicitly passed the object on which it is invoked.&lt;br&gt;
It may or may not return any data.&lt;br&gt;
A method can operate on the data (instance variables) that is contained by the corresponding class&lt;/p&gt;

</description>
    </item>
    <item>
      <title>python crash course</title>
      <dc:creator>pagarsach14</dc:creator>
      <pubDate>Wed, 09 Sep 2020 02:40:45 +0000</pubDate>
      <link>https://dev.to/pagarsach14/python-crash-course-1ao2</link>
      <guid>https://dev.to/pagarsach14/python-crash-course-1ao2</guid>
      <description>&lt;p&gt;Hello friends, in this post we introduce my one of the new python ebook for students&lt;/p&gt;

&lt;p&gt;so enjoy my new ebook&lt;br&gt;
THIS E-BOOK IS VERY HELP FULL FOR BEGINNER&lt;br&gt;
DIAMOND POINT OF THIS BOOK:&lt;/p&gt;

&lt;p&gt;FULL PYTHON DATA SCIENCE TUTORIALS AVAILABLE&lt;br&gt;
MACHINE LEARNING TUTORIALS ALSO AVAILABLE&lt;br&gt;
THIS BOOK IS SIMPLE AND USER FRIENDLY IN NATURE&lt;br&gt;
MOST OF THE PYTHON TRENDING EXTERNAL LINK IS AVAILABLE&lt;br&gt;
TOTAL 12 SECTION IS AVAILABLE IN THIS BOOK&lt;br&gt;
INDEX&lt;br&gt;
SECTIONName of TopicPage No&lt;br&gt;
1.Chapter 1Numpy in python08-&lt;br&gt;
2.Chapter 2Pandas in python11-&lt;br&gt;
3.Chapter 3Data Visualizationusing Matplotlib15-&lt;/p&gt;

&lt;p&gt;4.Chapter 4Part 01) Seaborn Library in python for Data Visualization&lt;br&gt;
Part 02) Seaborn Library in python 33-&lt;br&gt;
5.Chapter 5Pandas Built in Data Visualization40-&lt;/p&gt;

&lt;p&gt;6.Chapter 6Overview about Data Science43-&lt;/p&gt;

&lt;p&gt;7.Chapter 7Machine Learning section 44-&lt;br&gt;
8.Chapter 8Introduction about SVM46-&lt;/p&gt;

&lt;p&gt;9.Chapter 9 Linear Regression part A)48-&lt;/p&gt;

&lt;p&gt;10.Chapter 10 Linear Regression part B)49-&lt;/p&gt;

&lt;p&gt;Chapter 11 Logistic Regression part A)&lt;br&gt;
chapter 12 Logistic Regression part B)52-&lt;br&gt;
Bonus Tips 66&lt;br&gt;
so check this python ebook&lt;br&gt;
&lt;a href="https://www.amazon.com/PYTHON-BASICS-CRASH-COURSE-TUTORIALS-ebook/dp/B08FH4SS74"&gt;https://www.amazon.com/PYTHON-BASICS-CRASH-COURSE-TUTORIALS-ebook/dp/B08FH4SS74&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>amazon</category>
    </item>
    <item>
      <title>python crash course</title>
      <dc:creator>pagarsach14</dc:creator>
      <pubDate>Tue, 08 Sep 2020 17:44:17 +0000</pubDate>
      <link>https://dev.to/pagarsach14/python-crash-course-215j</link>
      <guid>https://dev.to/pagarsach14/python-crash-course-215j</guid>
      <description>&lt;p&gt;Hello friends, in this post we introduce my one of the new python ebook for students&lt;/p&gt;

&lt;p&gt;so enjoy my new ebook&lt;br&gt;
THIS E-BOOK IS VERY HELP FULL FOR BEGINNER&lt;br&gt;
DIAMOND POINT OF THIS BOOK:&lt;/p&gt;

&lt;p&gt;FULL PYTHON DATA SCIENCE TUTORIALS AVAILABLE&lt;br&gt;
MACHINE LEARNING TUTORIALS ALSO AVAILABLE&lt;br&gt;
THIS BOOK IS SIMPLE AND USER FRIENDLY IN NATURE&lt;br&gt;
MOST OF THE PYTHON TRENDING EXTERNAL LINK IS AVAILABLE&lt;br&gt;
TOTAL 12 SECTION IS AVAILABLE IN THIS BOOK&lt;br&gt;
INDEX&lt;br&gt;
SECTIONName of TopicPage No&lt;br&gt;
1.Chapter 1Numpy in python08-&lt;br&gt;
2.Chapter 2Pandas in python11-&lt;br&gt;
3.Chapter 3Data Visualizationusing Matplotlib15-&lt;/p&gt;

&lt;p&gt;4.Chapter 4Part 01) Seaborn Library in python for Data Visualization&lt;br&gt;
Part 02) Seaborn Library in python 33-&lt;br&gt;
5.Chapter 5Pandas Built in Data Visualization40-&lt;/p&gt;

&lt;p&gt;6.Chapter 6Overview about Data Science43-&lt;/p&gt;

&lt;p&gt;7.Chapter 7Machine Learning section 44-&lt;br&gt;
8.Chapter 8Introduction about SVM46-&lt;/p&gt;

&lt;p&gt;9.Chapter 9 Linear Regression part A)48-&lt;/p&gt;

&lt;p&gt;10.Chapter 10 Linear Regression part B)49-&lt;/p&gt;

&lt;p&gt;Chapter 11 Logistic Regression part A)&lt;br&gt;
chapter 12 Logistic Regression part B)52-&lt;br&gt;
Bonus Tips 66&lt;br&gt;
so check this python ebook&lt;br&gt;
python basics crash course&lt;/p&gt;

</description>
      <category>python</category>
      <category>amazon</category>
    </item>
    <item>
      <title>Why is Python so popular?</title>
      <dc:creator>pagarsach14</dc:creator>
      <pubDate>Tue, 04 Aug 2020 16:53:40 +0000</pubDate>
      <link>https://dev.to/pagarsach14/why-is-python-so-popular-3hjf</link>
      <guid>https://dev.to/pagarsach14/why-is-python-so-popular-3hjf</guid>
      <description>&lt;p&gt;Why is Python so popular?&lt;/p&gt;

&lt;p&gt;It’s one of the best languages when learning to code&lt;br&gt;
If you're new to coding or you're hoping to get someone you know interested in coding, good on you! Secondly, consider making Python your language of choice. It's one of the easiest programming languages to learn, due to the fact that it reads and writes quite a bit like plain English.&lt;br&gt;
In fact, there are many code clubs out in the world that you can join to help teach school kids how to code, and Python is one of the most common tools for this, at least in my experience. From little scripts and games to controlling LEDs and robots, there is a lot you can do to make learning fun. And if you're a kid at heart like me, you'll enjoy the projects as an adult too!&lt;/p&gt;

&lt;p&gt;We also have an Introduction to Python course here at GoSkills, so make sure you check that out if you’re looking to get started.&lt;/p&gt;

&lt;p&gt;Python is heavily used in the Internet of Things&lt;br&gt;
With the rise of the Internet of Things - small low-power devices that are connected to the internet and can run any custom code - Python has risen to the top for a lot of the devices you can buy and tinker with. Devices like the Raspberry Pi are tiny and connect to a multitude of sensors, displays, lights, robots and more, and allow you to write code to communicate between these parts, as well as send and receive data over Bluetooth, the internet and other communication methods.&lt;br&gt;
While not all of these devices support Python, a lot of them do; either a fully-featured version of Python or Micropython: a subset of Python for simpler devices, so you can still take advantage of the simplicity and productivity of Python without needing the full power it normally requires.&lt;br&gt;
Reference : &lt;a href="https://www.pythonslearning.com/2020/08/python-tutorials-point.html"&gt;https://www.pythonslearning.com/2020/08/python-tutorials-point.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>machinelearning</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Inheritance in python</title>
      <dc:creator>pagarsach14</dc:creator>
      <pubDate>Mon, 03 Aug 2020 09:38:06 +0000</pubDate>
      <link>https://dev.to/pagarsach14/inheritance-in-python-2lpa</link>
      <guid>https://dev.to/pagarsach14/inheritance-in-python-2lpa</guid>
      <description>&lt;p&gt;Object-oriented programming creates reusable patterns of code to prevent code redundancy in projects. One way that recyclable code is created is through inheritance, when one subclass leverages code from another base class.&lt;/p&gt;

&lt;p&gt;Inheritance is when a class uses code written within another class.&lt;/p&gt;

&lt;p&gt;Classes called child classes or &lt;a href="https://www.pythonslearning.com/2020/08/event-handling-in-python-tutorials-point.html"&gt;subclasses&lt;/a&gt; inherit methods and variables from parent classes or base classes.&lt;/p&gt;

&lt;p&gt;Because the Child subclass is inheriting from the Parent base class, the Child class can reuse the code of Parent, allowing the programmer to use fewer lines of code and decrease redundancy.&lt;/p&gt;

&lt;p&gt;Derived classes are declared much like their parent class; however, a list of base classes to inherit from is given after the class name −&lt;/p&gt;

&lt;p&gt;class SubClassName (ParentClass1[, ParentClass2, …]):&lt;br&gt;
'Optional class documentation string'&lt;br&gt;
class_suite&lt;br&gt;
References: &lt;a href="https://www.pythonslearning.com/2020/08/inheritance-in-python-tutorials-point_3.html"&gt;https://www.pythonslearning.com/2020/08/inheritance-in-python-tutorials-point_3.html&lt;/a&gt;&lt;br&gt;
Best of luck!!!&lt;/p&gt;

</description>
      <category>python</category>
      <category>machinelearning</category>
      <category>datascience</category>
    </item>
    <item>
      <title>What's Pandas for in python?</title>
      <dc:creator>pagarsach14</dc:creator>
      <pubDate>Sat, 01 Aug 2020 17:38:06 +0000</pubDate>
      <link>https://dev.to/pagarsach14/what-s-pandas-for-in-python-2od2</link>
      <guid>https://dev.to/pagarsach14/what-s-pandas-for-in-python-2od2</guid>
      <description>&lt;p&gt;What's Pandas for?&lt;br&gt;
Pandas has so many uses that it might make sense to list the things it can't do instead of what it can do.&lt;/p&gt;

&lt;p&gt;This tool is essentially your data’s home. Through pandas, you get acquainted with your data by cleaning, transforming, and analyzing it.&lt;/p&gt;

&lt;p&gt;For example, say you want to explore a dataset stored in a CSV on your computer. Pandas will extract the data from that CSV into a DataFrame — a table, basically — then let you do things like:&lt;/p&gt;

&lt;p&gt;Calculate statistics and answer questions about the data, like&lt;br&gt;
What's the average, median, max, or min of each column?&lt;br&gt;
Does column A correlate with column B?&lt;br&gt;
What does the distribution of data in column C look like?&lt;br&gt;
Clean the data by doing things like removing missing values and filtering rows or columns by some criteria&lt;br&gt;
Visualize the data with help from Matplotlib. Plot bars, lines, histograms, bubbles, and more.&lt;br&gt;
Store the cleaned, transformed data back into a CSV, other file or database&lt;br&gt;
Before you jump into the modeling or the complex visualizations you need to have a good understanding of the nature of your dataset and pandas is the best avenue through which to do that.&lt;br&gt;
References: &lt;a href="https://www.pythonslearning.com/2020/05/python-pandas-librarypython-crash.html"&gt;https://www.pythonslearning.com/2020/05/python-pandas-librarypython-crash.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>datascience</category>
    </item>
    <item>
      <title>5 most interesting facts about Python Programming</title>
      <dc:creator>pagarsach14</dc:creator>
      <pubDate>Sat, 01 Aug 2020 16:07:25 +0000</pubDate>
      <link>https://dev.to/pagarsach14/5-most-interesting-facts-about-python-programming-3nbn</link>
      <guid>https://dev.to/pagarsach14/5-most-interesting-facts-about-python-programming-3nbn</guid>
      <description>&lt;p&gt;Interesting facts about Python Programming&lt;br&gt;
Below are the 5 most interesting facts about Python Programming that you should know –&lt;/p&gt;

&lt;p&gt;Python was a hobby project&lt;br&gt;
In December 1989, Python’s creator Guido Van Rossum was looking for a hobby project to keep him occupied in the week around Christmas. He had been thinking of writing a new scripting language that’d be a descendant of ABC and also appeal to Unix/C hackers. He chose to call it Python.&lt;/p&gt;

&lt;p&gt;Why it was called Python&lt;br&gt;
The language’s name isn’t about snakes, but about the popular British comedy troupe Monty Python (from the 1970s). Guido himself is a big fan of Monty Python’s Flying Circus. Being in a rather irreverent mood, he named the project ‘Python’. Isn’t it an interesting Python fact?&lt;/p&gt;

&lt;p&gt;Big Companies Using Python&lt;br&gt;
Many big names use (or have used) Python for their products/services. Some of these are:&lt;br&gt;
Quora&lt;br&gt;
MIT&lt;br&gt;
Disqus&lt;br&gt;
Hike&lt;br&gt;
Spotify&lt;br&gt;
Udemy&lt;br&gt;
Shutterstock&lt;br&gt;
NASA&lt;br&gt;
Google&lt;br&gt;
Nokia&lt;br&gt;
IBM&lt;br&gt;
Yahoo! Maps&lt;br&gt;
Walt Disney Feature Animation&lt;br&gt;
Facebook&lt;br&gt;
Netflix&lt;br&gt;
Expedia&lt;br&gt;
Reddit&lt;/p&gt;

&lt;p&gt;No braces use&lt;br&gt;
Unlike Java and C++, Python does not use braces to delimit code. Indentation is mandatory with Python. If you choose to import it from the future package, it gives you a witty error/&lt;a href="%20https://www.pythonslearning.com/2020/08/how-to-use-counter-in-python-3-how-to.html&amp;lt;br&amp;gt;%0A"&gt;counter&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Interesting facts about Python language&lt;/p&gt;

&lt;p&gt;how to Functions can return multiple values&lt;br&gt;
In Python, a function can return more than one value as a tuple. Take a look at the following code:&lt;br&gt;
facts about python language&lt;/p&gt;

&lt;p&gt;This isn’t possible in a language like Java. There, you can return an array of values instead.&lt;br&gt;
References: &lt;a href="https://www.pythonslearning.com/2020/07/17-interesting-facts-about-python.html"&gt;https://www.pythonslearning.com/2020/07/17-interesting-facts-about-python.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>datascience</category>
      <category>machinelearning</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>How python append list</title>
      <dc:creator>pagarsach14</dc:creator>
      <pubDate>Tue, 28 Jul 2020 08:57:26 +0000</pubDate>
      <link>https://dev.to/pagarsach14/how-python-append-list-4o54</link>
      <guid>https://dev.to/pagarsach14/how-python-append-list-4o54</guid>
      <description>&lt;p&gt;append() and extend() in Python&lt;br&gt;
Append: Adds its argument as a single element to the end of a list. The length of the list increases by one.&lt;br&gt;
 &lt;a href="https://www.pythonslearning.com/2020/07/python-list-append-multiple-times.html"&gt;python append list&lt;/a&gt;&lt;br&gt;
syntax:&lt;br&gt;
Adds an object (a number, a string or a&lt;br&gt;
another list) at the end of my_list&lt;br&gt;
mylist.append(object) filternone&lt;br&gt;
edit&lt;br&gt;
play_arrow&lt;br&gt;
brightness4 mylist = ['geeks', 'for']&lt;br&gt;
mylist.append('geeks') print mylist&lt;br&gt;
Output:&lt;br&gt;
['geeks', 'for', 'geeks']&lt;br&gt;
NOTE: A list is an object &lt;a href="https://www.pythonslearning.com/2020/07/tic-tac-project-in-python.html"&gt;project&lt;/a&gt;. If you append another list onto a list, the parameter list will be a single object at the end of the list.&lt;br&gt;
filternone edit playarrow&lt;br&gt;
brightness4 mylist = ['geeks', 'for', 'geeks']&lt;br&gt;
anotherlist = [6, 0, 4, 1] mylist.append(anotherlist) print mylist&lt;br&gt;
Output:&lt;br&gt;
['geeks', 'for', 'geeks', [6, 0, 4, 1]]&lt;br&gt;
extend(): Iterates over its argument and adding each element to the list and extending the list. The length of the list increases by number of elements in it’s argument.&lt;br&gt;
syntax:&lt;br&gt;
python tic tac game project code&lt;br&gt;
Each element of an iterable gets appended&lt;br&gt;
to my_list&lt;br&gt;
mylist.extend(iterable) filternone&lt;br&gt;
edit&lt;br&gt;
play_arrow&lt;br&gt;
brightness4 mylist = ['geeks', 'for']&lt;br&gt;
anotherlist = [6, 0, 4, 1] mylist.extend(anotherlist) print mylist&lt;br&gt;
Output:&lt;br&gt;
want to &lt;a href="https://www.pythonslearning.com/2020/07/tutorials-point-online-compiler-python.html%20"&gt;compile&lt;/a&gt; program in smart way&lt;br&gt;
['geeks', 'for', 6, 0, 4, 1]&lt;br&gt;
NOTE: A string is an iterable, so if you extend a list with a string, you’ll append each character as you iterate over the string.&lt;br&gt;
filternone edit playarrow&lt;br&gt;
brightness4 mylist = ['geeks', 'for', 6, 0, 4, 1]&lt;br&gt;
mylist.extend('geeks') print mylist&lt;br&gt;
Output:&lt;br&gt;
['geeks', 'for', 6, 0, 4, 1, 'g', 'e', 'e', 'k', 's']&lt;br&gt;
Time Complexity:&lt;br&gt;
Append has constant time complexity i.e.,O(1).&lt;br&gt;
Extend has time complexity of O(k). Where k is the length of list which need to be added.&lt;br&gt;
Reference: &lt;a href="https://www.pythonslearning.com/"&gt;https://www.pythonslearning.com/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>machinelearning</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Python Operators Precedence Example</title>
      <dc:creator>pagarsach14</dc:creator>
      <pubDate>Sun, 19 Jul 2020 17:05:19 +0000</pubDate>
      <link>https://dev.to/pagarsach14/python-operators-precedence-example-28ib</link>
      <guid>https://dev.to/pagarsach14/python-operators-precedence-example-28ib</guid>
      <description>&lt;p&gt;Hello everyone, welcome to DEV community today we will see python operator&lt;br&gt;
so let's start:&lt;br&gt;
The following table lists all operators from highest precedence to lowest.&lt;/p&gt;

&lt;p&gt;[&lt;a href="https://www.pythonslearning.com/2020/07/greater-than-or-equal-to-python.html"&gt;Operator Description&lt;/a&gt;]&lt;br&gt;
** Exponentiation (raise to the power)&lt;br&gt;
~ + - Complement, unary plus and minus (method names for the last two are +@ and -@)&lt;/p&gt;

&lt;p&gt;/ % // Multiply, divide, modulo and floor division&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Addition and subtraction
&amp;lt;&amp;lt; Right and left bitwise shift &amp;amp; Bitwise 'AND'td&amp;gt;
^ | Bitwise exclusive OR' and regularOR'
&amp;gt;= &lt;a href="https://www.pythonslearning.com/2020/07/greater-than-or-equal-to-python.html"&gt;Comparison operators&lt;/a&gt;
&amp;lt;&amp;gt; == != Equality operators
= %= /= //= -= += &lt;em&gt;= *&lt;/em&gt;= Assignment operators
is is not Identity operators
in not in &lt;a href="https://www.pythonslearning.com/2020/07/what-is-list-in-python-with-example.html"&gt;Membership operators&lt;/a&gt;
example
a = 20
b = 10
c = 15
d = 5
e = 0&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;e = (a + b) * c / d #( 30 * 15 ) / 5&lt;br&gt;
print "Value of (a + b) * c / d is ", e&lt;/p&gt;

&lt;p&gt;e = ((a + b) * c) / d # (30 * 15 ) / 5&lt;br&gt;
print "Value of ((a + b) * c) / d is ", e&lt;/p&gt;

&lt;p&gt;e = (a + b) * (c / d); # (30) * (15/5)&lt;br&gt;
print "Value of (a + b) * (c / d) is ", e&lt;/p&gt;

&lt;p&gt;e = a + (b * c) / d; # 20 + (150/5)&lt;br&gt;
print "Value of a + (b * c) / d is ", e&lt;br&gt;
When you execute the above program, it produces the following result list −&lt;/p&gt;

&lt;p&gt;Value of (a + b) * c / d is 90&lt;br&gt;
Value of ((a + b) * c) / d is 90&lt;br&gt;
Value of (a + b) * (c / d) is 90&lt;br&gt;
Value of a + (b * c) / d is 50&lt;br&gt;
references: &lt;a href="https://www.pythonslearning.com/2020/07/greater-than-or-equal-to-python.html"&gt;https://www.pythonslearning.com/2020/07/greater-than-or-equal-to-python.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>datascience</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>difference between function and Method in python</title>
      <dc:creator>pagarsach14</dc:creator>
      <pubDate>Tue, 14 Jul 2020 09:02:53 +0000</pubDate>
      <link>https://dev.to/pagarsach14/difference-between-function-and-method-in-python-3epb</link>
      <guid>https://dev.to/pagarsach14/difference-between-function-and-method-in-python-3epb</guid>
      <description>&lt;p&gt;what is function:&lt;br&gt;
A function is a block of code to carry out a specific task, will contain its own scope and is called by name. All functions may contain zero(no) arguments or more than one arguments. On exit, a function can or can not return one or more values.&lt;/p&gt;

&lt;p&gt;Basic function syntax&lt;br&gt;
def functionName( arg1, arg2,….):&lt;br&gt;
…….&lt;/p&gt;

&lt;h1&gt;
  
  
  Function_body
&lt;/h1&gt;

&lt;p&gt;……..&lt;br&gt;
Let’s create our own (user), a very simple function called sum(user can give any name he wants)”. Function “sum” is having two arguments called num1 and num2 and will return the sum of the arguments passed to the functionsum). When we call the function (sum) with values(arguments) 5 and 6, it returns 11.&lt;br&gt;
def sum(num1, num2):&lt;br&gt;
return (num1 + num2)&lt;/p&gt;

&lt;p&gt;Output&lt;/p&gt;

&lt;p&gt;sum(5,6)&lt;br&gt;
11&lt;/p&gt;

&lt;p&gt;what is Method:&lt;br&gt;
A method in python is somewhat similar to a function, except it is associated with object/classes. Methods in python are very similar to functions except for two major differences.&lt;/p&gt;

&lt;p&gt;The method is implicitly used for an object for which it is called.&lt;a href="https://www.pythonslearning.com/2020/07/python-read-from-stdin-write-to-file.html"&gt;python&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The method is accessible to data that is contained within the class.&lt;a href="https://www.pythonslearning.com/2020/07/learning-php-mysql-javascript-5th.html"&gt;book&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;General Method Syntax&lt;br&gt;
class ClassName:&lt;br&gt;
def methodname(): ………….. # &lt;a href="https://www.pythonslearning.com/2020/07/python-range-function-in-python-range.html"&gt;Methodbody&lt;/a&gt;&lt;br&gt;
………………&lt;br&gt;
class Pet(object):&lt;br&gt;
def mymethod(self): print("I am a Cat") cat = Pet() cat.mymethod()&lt;br&gt;
Output&lt;br&gt;
I am a Cat&lt;br&gt;
for detailed information see python books&lt;br&gt;
Reference: &lt;a href="https://www.pythonslearning.com/2020/07/method-vs-function-python.html"&gt;https://www.pythonslearning.com/2020/07/method-vs-function-python.html&lt;/a&gt;&lt;br&gt;
BEST OF LUCK!!&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Exceptions versus Syntax Errorspython</title>
      <dc:creator>pagarsach14</dc:creator>
      <pubDate>Sun, 12 Jul 2020 05:23:13 +0000</pubDate>
      <link>https://dev.to/pagarsach14/python-247a</link>
      <guid>https://dev.to/pagarsach14/python-247a</guid>
      <description>&lt;p&gt;Exceptions versus Syntax Errors&lt;br&gt;
Syntax errors occur when the parser detects an incorrect statement. Observe the following example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;print( 0 / 0 ))&lt;br&gt;
  File "", line 1&lt;br&gt;
    print( 0 / 0 ))&lt;br&gt;
                  ^&lt;br&gt;
SyntaxError: invalid syntax&lt;br&gt;
The arrow indicates where the parser ran into the syntax error. In this example, there was one bracket too many. Remove it and run your code again:&lt;/p&gt;

&lt;p&gt;print( 0 / 0)&lt;br&gt;
Traceback (most recent call last):&lt;br&gt;
  File "", line 1, in &lt;br&gt;
ZeroDivisionError: integer division or modulo by zero&lt;br&gt;
summary this code some cases mostly use if you have need more detailed information then visit &lt;a href="https://www.pythonslearning.com"&gt;https://www.pythonslearning.com&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;
&lt;br&gt;
&lt;/blockquote&gt;

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