Python Create New Class Rectangle

Topic: Python Create New Class Rectangle Write a Python Program to perform the above mentioned OOP concepts. The Rectangle class will have: Two instance variables: length and width Two instance methods: compute_area() and compute_perimeter() The formula of area of rectangle is to multiply length of rectangle by the width of the rectangle. Similarly, the formula… Read More »

List in Python With Examples

Tpoic: List in Python With Examples What is List in Python Language? List is a dynamic collection of items of different types. Lists contain utems similar to the arrays of other programming languages like C, C++ and Java etc. Difference between Array and List The array is the collection of items of same data type.… Read More »

Logical Operators in Python Language

Topic: Logical Operators in Python Language Logical Operators in Python Language are used to create compound conditions. The compound conditions contain more than one conditions combined with logical operators. We use ‘and’ and ‘or’ logical operators to combine two or more conditions. Another logical operator ‘not’ is used to reverse the result of a condition.… Read More »