Python – String

After reading this Python String topic, you will understand how to write and manipulate the string, and you will understand how to + operator for string use in Python.

A group of characters is known as string. Characters that can be used in string as lowercase letters (a – z), uppercase letters (A – Z), digits (0 – 9) and other characters as (#, %, &, etc.).

Continue reading Python – String

Python – Dictionaries

After reading this Python Dictionaries topic, you will understand how to create the dictionary, and you will know how to accessing Items, changing Items and use Python dictionary built-in methods.

A Dictionary is a variable that collects same or different type of elements(items) does not exist in a sequence. The elements of the dictionary cannot repeat and dictionary elements support key. Unlike an index which supports integer only, a key can support integer or string.

Continue reading Python – Dictionaries

Python – Tuples

After reading this Python Tuples topic, you will understand its the theory and examples, you will understand how to create the tuples, and you will know how to accessing Items, changing Items and use tuples built-in methods in Python.

A tuple is a variable that collects same or different type of elements (items) in a sequence. The elements of the tuple cannot change.

Continue reading Python – Tuples

Python – Iterators

After reading this Python Iterators topic, you will know how to implement an iterator and use a loop over an iterator in Python, you will understand iterator two methods __iter()__ and __next()__,  & stopiteration statement in Python.

In python, an iterator is an object and iterator object is generally associated with two methods as __iter()__ and __next()__. Lists, tuples, dictionaries, sets, etc. all are examples of iterable objects. The object said to be iterable when it gives iterator and for doing this the object used the method __iter()__. The __next()__ method is used to visit each item of lists, tuples, dictionaries, sets, etc. in python.

Continue reading Python – Iterators