Python Function

Function is a block of code which when called , perform the task and return…

Python Comprehension

Python comprehensions are a concise way to create lists, dictionaries, and sets. They allow for…

Python map(), filter() , any() and all()

map(): The map() function is used to apply a given function to every item of an iterable, such…

lambda Function in Python

They are basically anonymous function. A lambda expression starts with the word lambda then followed…

Set in Python

Set is an unordered collection of unique items . Since it is an unordered collection…

Shallow Copy Vs Deep Copy

Consider a dictionary: animals= { "lion" : "scary", "elephant" : "big", "teddy" : "cuddly", }…

Python DocString and Function Annotation

Docstring stands for documentation strings. Python docstrings are the string literals that appear right after…

Tuple in Python

Tuple are ordered set/collection of data separated by comma. Like list they are also sequence…

List in Python

List is a sequence type . It is basically an ordered collection of items enclosed…

String in Python

String is basically “sequence of characters”. Characteristics of String: It is used to refer to…