they are added with the purpose of making the source code easier for humans to understand they are used primarily to document the meaning and purpose of source code and its input and output requirementsso that we can remember later how it functions and how to use it for large and complex softwareit may require programmers to work in teams and sometimesa program written by one programmer is required to be used or maintained by another programmer in such situationsdocumentations in the form of comments are needed to understand the working of the program in pythona comment starts with (hash signeverything following the till the end of that line is treated as comment and the interpreter simply ignores it while executing the statement example #variable amount is the total spending on #grocery amount #totalmarks is sum of marks in all the tests #of mathematics totalmarks test test finaltest program - write python program to find the sum of two numbers #program - #to find the sum of two numbers num num result num num print(resultoutput everything is an object python treats every value or data item whether numericstringor other type (discussed in the next sectionas an object in the sense that it can be assigned to some variable or can be passed to function as an argument every object in python is assigned unique identity (idwhich remains the same for the lifetime of that object this id is akin to the memory address of the object the function id(returns the identity of an object - in the context of object oriented programming (oop)objects are representation of the real worldsuch as employeestudentvehicleboxbooketc in any object oriented programming language like ++javaetc each object has two things associated with it(idata or attributes and (iibehaviour or methods further there are concepts of class and class hierarchies from which objects can be instantiated howeveroop concepts are not in the scope of our present discussions python also comes under the category of object oriented programming howeverin pythonthe definition of object is loosely casted as some objects may not have attributes or others may not have methods