Category Archives: Python

Property in Python

In this tutorial, we will discuss one of the pythons inbuilt-decorators @property and also learn the use of getter and setter. What is @Property in Python? @property is an inbuilt-python decorator which is used with class methods, and it is mainly used to increase the data encapsulation concept in python.

Hangman Game In Python

Here in this program, we will code for Hangman game in python. Hangman is a game in which the computer provides a number of blank spaces to the user to fill those blank spaces with letters. Apparently, Hangman is a paper and pencil guessing game like tic-tac-toe. The game can be played between two or… Read More »

Python Iterators

In this tutorial, we will learn what are iterators in python and where we use them. We will also discuss how can we create our own Iterators using __iter__ and __next__ methods.