Python Colon Operator

Python Colon Operator(:) The colon(:) symbol is used for multiple purposes in Python As slice operator in list, tuple, and string data type. It is also used in if, while, …

Read more

Python Tuples

Python Tuples   Tuple is immutable. It is declared with parenthesis (). It is an ordered sequence of items same as a list. They are similar to a list. The …

Read more

Python One-line if-else Statements

Python One-line if-else Statements:   The conditional operator – also known as the ternary operator – is an alternative form of the if/else statement that helps you to write conditional …

Read more

Python Multi-line Statements

Python Multi-line Statements: Python already contains a lot of advanced features and functions to make programming easy to understand. Similarly, python gives us an option to make multiple line statements …

Read more