Homework 5 Problem 4

 avatar
Blade
python
5 months ago
420 B
9
Indexable
"""
4. Write a python function called add_squares(num1, num2) that will return the sum of the squares of the two number provided as its arguments. 


Input:
    add_squares(3, 4)
Output:
    25

Input:
    add_squares(5, 3)
Output:
    34
"""
# Write your solution for problem 4 here.
import math
# Add the squares of the two user numbers.
def add_squares(num1, num2):
    result = num1 **2 + num2 ** 2
    return result
Editor is loading...
Leave a Comment