To find the 2-norm of a vector in Python using numpy, you can use the `numpy.linalg.norm()`

function. The second argument of the function specifies the type of norm, which in this case is `2`

for the 2-norm.

main.py154 chars10 lines

To check the orthogonality of two vectors in Python using numpy, you can use the `numpy.dot()`

function to compute the dot product of the vectors. If the dot product is zero, then the vectors are orthogonal.

main.py283 chars14 lines

how to get distinct combinations of a set in python

how to get distinct permutations of a set in python

find the sum of all elements in an array in python

how to get all combinations of a set in python

define a function that takes a list of numbers as an argument and returns the sum of the numbers in the list. in python

how to get the power set of a set in python

find the median of all elements in an array in python

find the average of all elements in an array in python

find the largest number in the following list of numbers: [1, 3, 4, 2, 5] in python

print the numbers from 1 to 100, but only print the even numbers in python

gistlibby LogSnag