In our previous article, we came with examples to iterate list and iterate dictionary. Slicing is an important and commonly used feature in Python. By using slice operation at list, we can get sub-list from original list. In this tutorial we will demonstrate different ways to slice list.
1) Most popular way to slice List
Dictionary is data structure which store data in key-value pair and widely used in Python programming language. In our previous tutorial, we came up with the example to iterate a list. In this blog, we will demonstrate the examples to iterate dictionary in various ways.
1) Iterate dictionary using
String is widely used in Python programming language. There are many scenarios where programmers have to split the string based on different delimiters. In this blog, we demonstrate splitting of string using different delimiters.