Class and Object | Python
P1 / CLASS WITH PUBLIC ATTRIBUTES Create a class named Person with the following 2 public attributes. name age Include a constructor . __init__(self,name, age) Create an object of class Person to test the above class. Input and Output Format: Refer Sample Input and Output for formatting specifications. Sample Input and Output: [All text in bold corresponds to input and the rest corresponds to output] Enter name Mahirl Enter age 10 Person Details Mahirl 10 Additional Sample TestCases Sample Input and Output 1 : Enter name Mahirl Enter age 10 Person Details Mahirl 10 P2 / CLASS WITH PRIVATEATTRIBUTES Create a class named Person with the following 2 private attributes. __name __age Include a constructor . ___init__(self,name, age) Include a method display() In this method, display the person details in the format specified in the sample output. Create an object of class Person and invoke the display method to test the above cla...