
Write a function that returns the perimeter of a square give...
Prompt
Write a function that returns the perimeter of a square given its side length as input. Your function should satisfy these tests: ```python assert square_perimeter(10)==40 assert square_perimeter(5)==20 assert square_perimeter(4)==16 ```
Answer guidance
Reference solution: def square_perimeter(a): perimeter=4*a return perimeter
Drag to resize
Drag to resize
Drag to resize