List, set and dictionary comprehension in python

List, set and dictionaries are some of the important data types in python. In these article we shall see the comprehension techniques of these data types. What is comprehension in python? Comprehensions in Python provide us with a short and concise way to construct new sequences (such as lists, set, dictionary etc.) using sequences which […]

Read More

10 lesser known facts about python

Python is the only language to have an else condition for a for loop. It executes if the for loops terminates normally without any “break”. The else will be fired if there’s no even number in list. 2. You can assign () to [], but not the other way round. The reason is [] is […]

Read More