## Python Program to Create a Class which Performs Basic Calculator Operations

This is a Python Program to find the area of a rectangle using classes. Problem Description The program takes the length and breadth from the user and finds the area of the rectangle using classes. Problem Solution 1. Create a class and using a constructor to initialize values of that class. 2. Create methods for … Read more

## Python Program to Create a Class in which One Method Accepts a String from the User and Another Prints it

This is a Python Program to accept and print a string using classes. Problem Description The program takes the string from the user and prints the string using classes. Problem Solution 1. Create a class and using a constructor initialize values of that class. 3. Create two methods called as get which takes in the … Read more

## Python Program to Create a Class and Get All Possible Distinct Subsets from a Set

This is a Python Program to create a class and get all possible subsets from a set of distinct integers. Problem Description The program creates a class to get all possible subsets from a set of distinct integers. Problem Solution 1. Create a class and define two methods in the class. 3. Method f1 is … Read more

## Python Program to Append, Delete and Display Elements of a List using Classes

This is a Python Program to append, delete and display elements of a list using classes. Problem Description The program appends, deletes and displays elements of a list using classes. Problem Solution 1. Create a class and using a constructor initialize values of that class. 2. Create methods for adding, removing and displaying elements of … Read more

## Python Program to Find the Area and Perimeter of the Circle

Problem Description Write a Python Program to find the area and perimeter of the circle. What is Area of circle? Area of circle is defined as pi*r*r where pi is a constant whose value is (22/7 or 3.142) and r is the radius of a circle. Formula to calculate the area of circle is: Area … Read more