Random Sum Calculation Using NumPy

  • Share this:

Code introduction


This function accepts two arguments and adds them using the sum function from the NumPy library.


Technology Stack : NumPy

Code Type : Function

Code Difficulty : Intermediate


                
                    
def random_sum(arg1, arg2):
    import numpy as np
    return np.sum([arg1, arg2])                
              
Tags: