Python String index() Method
Python String index() Method allows a user to find the index of the first occurrence of an existing substring inside a given string in Python....
read more
Minimum characters to be replaced to remove the given substring
Given two strings str1 and str2. The task is to find the minimum number of characters to be replaced by $ in string str1 such that str1 does not contain string str2 as any substring....
read more
atan2() function in Python
...
read more
Enumerate() in Python
Often, when dealing with iterators, we also need to keep a count of iterations. Python eases the programmers’ task by providing a built-in function enumerate() for this task. The enumerate () method adds a counter to an iterable and returns it in the form of an enumerating object. This enumerated object can then be used directly for loops or converted into a list of tuples using the list() function....
read more
Python List pop() Method
Python list pop() function removes elements at a specific index from the list....
read more
Python math function | copysign()
math.copysign() is a function exists in Standard math Library of Python. This function returns a float value consisting of magnitude from parameter x and the sign (+ve or -ve) from parameter y....
read more
expandtabs() method in Python
Python String expandtabs() Method specifies the amount of space to be substituted with the “\t” symbol in the string....
read more
Python | ldexp() function
ldexp() function is one of the Standard math library function in Python, which returns x * (2**i). This is also called as inverse of Python frexp() function....
read more
Python min() Function
Python min() function returns the smallest of the values or the smallest item in an iterable passed as its parameter....
read more
median_grouped() function in Python statistics module
Coming to Statistical functions, median of a data-set is the measure of robust central tendency, which is less affected by the presence of outliers in data. As seen previously, medians of an ungrouped data-set using median(), median_high(), median_low() functions. Python gives the option to calculate the median of grouped and continuous data function as well and this is the best part about this robust and convenient language. median_grouped() function under the Statistics module, helps to calculate median value from a set of continuous data.The data are assumed to be grouped into intervals of width intervals. Each data point in the array is the midpoint of the interval containing the true value. The median is calculated by interpolation within the median interval (the interval containing the median value), assuming that the true values within that interval are distributed uniformly :...
read more
Python | random.sample() function
sample() is an inbuilt function of random module in Python that returns a particular length list of items chosen from the sequence i.e. list, tuple, string or set. Used for random sampling without replacement....
read more
randint() Function in Python
randint() is an inbuilt function of the random module in Python3. The random module gives access to various useful functions one of them being able to generate random numbers, which is randint().  In this article, we will learn about randint in Python....
read more