Python

List in Python

List is use to store the group of values. A list can be compose by storing a sequence of different type of values separated by commas. List is mutable object so we can do the manipulations. A list is enclose between square [] brackets. In list insertion order is preserve it means in which order we insert element same order output is print. A List duplicate objects are allowed. The list contains forward indexing & backward indexing.

Python

Python if…else Statement

Decision making in Python structures have one or more conditions to be evaluate or test by the program, along with a statement or statements that are to be execute if the condition is determine to be true, and optionally, other statements to be execute if the condition is determine to be false.