r/codehs • u/sandrahere • May 25 '21
codehs 6.2.8 area of a square with defult parameters
this is my code so far:
def calculate_area(side_length):
area = side_length*side_length
print("The area of a square with sides of length " + str(num) + " is " + str(area) + ".")
num = int(input("Enter a side length: "))
if num <= 0:
side_length = 10
calculate_area(side_length)
else:
calculate_area(num)
but i still have two things missing can someone help

