#python-projects
Read more stories on Hashnode
Articles with this tag
The enumerate function is a built-in function in Python that allows you to loop over a sequence (such as a list, tuple, or string) and get the index...
If ... Else in One Line There is also a shorthand syntax for the if-else statement that can be used when the condition being tested is simple and the...
Exception Handling Exception handling is the process of responding to unwanted or unexpected events when a computer program runs. Exception handling...
Python - else in Loop As you have learned before, the else clause is used along with the if statement. Python allows the else keyword to be used with...
Python Dictionaries Dictionaries are ordered collection of data items. They store multiple items in a single variable. Dictionary items are key-value...
Joining Sets Sets in python more or less work in the same way as sets in mathematics. We can perform operations like union and intersection on the...