Sum of Squares Calculator

  • Share this:

Code introduction


Calculates and returns the sum of squares of all input arguments.


Technology Stack : Built-in functions, generator expressions

Code Type : Function

Code Difficulty : Intermediate


                
                    
def sum_squares(*args):
    return sum(x*x for x in args)