Skip to content
map function in python

Map function in Python

Map function in Python loops over each item in one or more given iterables and returns a map-object (which is an iterator) by applying the given function to them. The number of arguments in the function given in the map function and the number of iterable in the map function must always be equal.

Python For Loop

Python For Loop

Python For Loop is used to iterate over a iterator ( string , list , tuple , set , dictionary) or iterable objects .

Python While Loop

Python While loop

Python while loop is used to execute a block of code repeatedly as long as the given condition True and when the condition becomes False the program exits the loop .

Input function in Python

Input function in Python

Input function in Python allows user input . It reads a line from input, converts it to a string by removing the trailing newline, and returns it .

Len function in Python

Len function in Python

Len function in Python returns the length (the number of items) of an object . The argument may be a sequence (such as a string, bytes, tuple, list, or range) or a collection (such as a dictionary, set, or frozen set).

Range function in Python

Range function in Python

Range function in Python is used to to generate a sequence of numbers . Actually Python treats range function as a datatype which represents an immutable sequence of numbers

Loops in Python

Loops in Python

Loops in Python helps us to repeat a specific block of code . In Python there are two types of loop one is While loop and other is For loop . Although basic functionalities of both the loops are same but syntax is different .

Indentation in Python

Indentation in Python

Indentation in Python is like page number in a book . As without page number we can not understand what page to read next , without proper indentation Python can not understand what line to compile next

Bool function in Python

Bool function in Python

Bool function in Python helps us to find out boolean equivalent of any value or variable . There are two types of boolean equivalent in python . One is Truth equivalent or Truthy value and another is False equivalent or Falsy value .