Python callable() Function

Python callable() Function The callable() function returns a boolean value ‘True’ if the specified object is callable, else it returns False. Syntax

Parameter Object:  The object parameter represents the value to test if it is callable or not. Return This function returns a returns Boolean value true, if the given object is callable. Example 1

Return

Python bytearray()

Python bytearray() Class The bytearray() class is used to return a bytearray object which is an array of the specified bytes. It gives a mutable sequence of integers in the range 0 <= x < 256. Syntax

Parameter source[optional]: This parameter is used to Initialize the given array of bytes. encoding[optional]: This parameter encoding the specified string. errors[optional]: The error parameter takes action when encoding fails. Return It returns …

Read morePython bytearray()

Python bool()

Python bool() class The bool() class in Python returns the boolean value for the specified object. Syntax

Parameter object: This parameter represents the object, like String, List, Number etc. Return It will always return True, except for the following cases where it returns False: The object is empty, like [], (), {} The object is False The object is 0 The object is None Example 1

Output …

Read morePython bool()

Python bin() function

Python bin() function The bin() function in Python returns the binary version for the specified integer. Syntax

Parameter n: This parameter represents an integer or int value. Return This function returns a binary string for the specified integer or int object. Example 1

Output

Python ascii() Function

Python ascii() Function The ascii() function returns a readable version of any object (Strings, Tuples, Lists, etc). This function will replace any non-ascii characters with escape characters. Syntax

Parameter object:  An object, like String, List, Tuple, Dictionary, etc. Return This function returns a readable version of any object unlike Strings, Tuples, Lists, etc. Example 1

Output

Python any() Function

Python any() Function The any() function in Python returns a boolean value ‘True’ if any element of the iterable is true or if the iterable is empty, else it returns False. Syntax

Parameter Iterable: An iterable object (list, tuple, dictionary) Return This function returns a Boolean value True if any element of the iterable is true or if the iterable is empty, else it returns False. Example 1

Output

Python all() Function

Python all() Function The all() function in Python returns a Boolean value ‘True’ if all the items in iterable are true or if the iterable object is empty, else it returns False. Syntax

Parameter Iterable: An iterable object (list, tuple, dictionary) Return This function returns a Boolean value true if all the items in an iterable are true else it returns false. Example 1

Output

Python abs() function

Python abs() function The abs() function returns the absolute value of a number. Syntax

Parameter x: The parameter ‘x’ can be an integer value, a floating point number or a complex number. Return This function returns the absolute value of a number, but if the argument is a complex number, its magnitude is returned. Example 1

Output

Apache Fineract Tutorial for Beginners

What is Apache Fineract? Apache Fineract is an open source platform for financial services. It is secure, multi-tenanted, and reliable software. Fineract is a modern platform with a modular service-oriented architecture which provides the core functionality needed for financial inclusion. Apache Fineract provides a robust, reliable, and affordable solution for entrepreneurs, financial institutions, and service providers. It becomes easy for these providers to offer financial services to the world’s …

Read moreApache Fineract Tutorial for Beginners

Internetworking Basics

What is a Network? A network is a group of two or more devices connected by some transmission media, i.e., cables. The purpose of designing a network is to enable the sharing of files and information between multiple devices. Types of Network There are following types of Network – Local Area Network (LAN) Metropolitan Area Network (MAN) Wide Area Network (WAN) Storage Area Network (SAN) Campus Area Network (CAN) …

Read moreInternetworking Basics

CCNA Tutorial for Beginners

What is CCNA? CCNA stands for Cisco Certified Network Associate. It is a certification course offered by Cisco. CCNA improves your understanding of the internet working and how different network topologies work together to form a network. What is Cisco? Cisco is the American multinational technology company in the centre of California. It is the king of routing, switching, and security. Most of the companies use Cisco devices in …

Read moreCCNA Tutorial for Beginners

numpy.flip() in Python

numpy.flip() in Python The numpy.flip() function is used to reverse the order of elements in an array along the given axis where the shape of the array is preserved, but the elements are reordered. Syntax

Parameter m : This parameter represents the Input array. axis : Axis or axes parameter is used to flip over the values. The default axis value is None, flip over all of the axes of the input …

Read morenumpy.flip() in Python

numpy.unique() in Python

numpy.unique() in Python The numpy.unique() function finds the unique elements of an array and returns the sorted unique elements for the specified array.  Syntax

Parameter ar : This parameter returns an Input array.If the aaray is not 1-D, this will be flattened. return_index : This is an optional parameter which takes Boolean values. If Boolean value ‘True’ is passed, it returns the indices of the parameter ‘ar’ (along the specified axis, if provided, or …

Read morenumpy.unique() in Python

numpy.trim_zeros() in Python

numpy.trim_zeros() in Python The numpy.trim_zeros() trims the leading and/or trailing zeros from a 1-D array or sequence. Syntax

  Parameter The numpy.trim_zeros() function consists of two parameters, which are as follows: filt : This parameter represents the 1-D array Input array. trim : It is an optional parameter which takes a string with ‘f’ representing trim from front and ‘b’ to trim from the back. Default is ‘fb’, trim zeros from both …

Read morenumpy.trim_zeros() in Python

numpy.resize() in Python

numpy.resize() in Python The numpy.resize() returns a new array with the specified shape. If the new array is larger than the original array, then the new array is filled with repeated copies of a.  Syntax

Parameter The numpy.resize() parameter consists of two parameters, which are as follows: a : This parameter represents the array to be resized. new_shape: This parameter represents the shape of the resized array. Return This function returns the …

Read morenumpy.resize() in Python

numpy.append() in Python

numpy.append() in Python The numpy.append() function appends the values to the end of an array. Syntax

Parameter The numpy.append() function consists of three parameters, which are as follows: arr : This parameter represents the values that are appended to a copy of this array. values: These values are appended to a copy of arr. It must be of the correct shape. If the ‘axis’ parameter is not specified, values can be any shape and will …

Read morenumpy.append() in Python

numpy.delete() in Python

numpy.delete() in Python The numpy.delete() function returns a new array with sub-arrays along an axis deleted. For 1-D array, this function returns those entries which are not returned by arr[obj]. Syntax

Parameter arr: This parameter returns the input array. obj : This parameter indicates which sub-arrays to remove. axis: It represents the axis along which to delete the subarray defined by obj. If axis is None, obj is applied to the flattened array. Return This function returns a …

Read morenumpy.delete() in Python

numpy.repeat() in Python

numpy.repeat() in Python The numpy.repeat() function repeats the elements of an array. Syntax

Parameter The numpy.repeat() function consists of three parameters, which are as follows: a: This parameter represents the input array. repeats: This parameter represents the number of repetitions for each element.  axis: It signifies the axis along which to repeat the values. By default, it uses the flattened input array, and returns a flat output array. Return This …

Read morenumpy.repeat() in Python

numpy.tile() in Python

numpy.tile() in Python The numpy.tile() function constructs an array by repeating the parameter ‘A’  the number of times as specified by the ‘reps’ parameter. Syntax

Parameter The numpy.tile() function consists of two parameters, which are as follows: A: This parameter represents the input array. reps: This parameter represents the number of repetitions of A along each axis. Return This function returns the tiled output array. Example 1

Output

Example 2 …

Read morenumpy.tile() in Python

numpy.split() in Python

numpy.split() in Python The numpy.split() function splits an array into multiple sub-arrays. Syntax

Parameter ary: This parameter represents the Array to be divided into sub-arrays. indices_or_sections : This parameter represents an int or an 1-D array. If indices_or_sections is an integer, N, the array will be divided into N equal arrays along axis. If such a split is not possible, an error is raised. axis: This parameter represents an axis along which the array is …

Read morenumpy.split() in Python