A for loop is used for iterating over sequence(i.e. a list, tuple, dictionary, set, string). Syntax of for Loop: The for loop used in python is different from the for keyword used in other programming languages, and work more like iterator as found in other object-oriented programming languages. Example: >Even strings are iterable objects, they … Continue reading for loop in python
Category: Uncategorized
if,else,elif Statements in python
if Statements in Python allows us to tell the computer to perform alternative actions based on a certain set of results. Verbally, we can imagine we are telling the computer: "Hey if this case happens, perform some action" We can then expand the idea further with elif and else statements, which allow us to tell the computer: "Hey if this … Continue reading if,else,elif Statements in python

