Programming Examples Archives - Avid Python https://avidpython.com/category/programming-examples/ A website for learning everyting about Python Programming Sun, 05 Feb 2023 07:11:13 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 https://i0.wp.com/avidpython.com/wp-content/uploads/2021/06/cropped-Avid-PYTHON1.png?fit=32%2C32&ssl=1 Programming Examples Archives - Avid Python https://avidpython.com/category/programming-examples/ 32 32 194028808 When to Use Try-Except Instead of If-Else? https://avidpython.com/python-basics/when-to-use-try-except-instead-of-if-else/ https://avidpython.com/python-basics/when-to-use-try-except-instead-of-if-else/#respond Fri, 23 Jul 2021 19:11:25 +0000 https://avidpython.com/?p=2074 Programming is the process of defining a set of instructions that tells a machine how to perform a task. While executing these instructions we have to deal with certain constraints and conditions. These constraints or conditions decide the flow of our program. Based on these constraints the program decides whether the machine could complete a […]

The post When to Use Try-Except Instead of If-Else? appeared first on Avid Python.

]]>
https://avidpython.com/python-basics/when-to-use-try-except-instead-of-if-else/feed/ 0 2074
List Comprehension in Python https://avidpython.com/python-basics/list-comprehension-in-python/ https://avidpython.com/python-basics/list-comprehension-in-python/#respond Tue, 06 Jul 2021 16:05:17 +0000 https://avidpython.com/?p=1931 Python list is the most versatile and effective Data Type in Python programming. We know that list has several applications in Python programming due to its flexible nature. Lists are mutable, ordered sequences of objects, and their elements are easily accessible and modifiable. In addition to these basic characteristics of a Python List, Python provides […]

The post List Comprehension in Python appeared first on Avid Python.

]]>
https://avidpython.com/python-basics/list-comprehension-in-python/feed/ 0 1931