python programming language

Removing all duplicates characters from a given string.

According to the heading, the resultant string consists of unique characters. for example:- input string –> 1 .”rama” 2 . “ramu” 3. “rrrr” Resultant string –> 1 . “ram” 2. “ramu” 3. “r” Explanation:- step 1:- Initializing input string step 1:- Initializing input string step 2:- taking each character from the input string and check …

Removing all duplicates characters from a given string. Read More »

Accessing class properties and behaviour outside the class.

After creating an object, you can access the class properties and behavior by using object name followed by dot operator (.) followed by properties name/ instance variable/behavior/method name. Syntax: object_name.properties or object_name.behavior In the above example, we have created one object of class Car called car_object and for accessing properties we are using car_object.price (properties/ …

Accessing class properties and behaviour outside the class. Read More »

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock