--
Your function uses `x` and not `r` in the code. Despite the code being "simple" no one would have guessed it was intended to calculate the area of a circle.
--
Your function uses `x` and not `r` in the code. Despite the code being "simple" no one would have guessed it was intended to calculate the area of a circle.
Data Scientist and Chartered Aeronautical Engineer (MEng CEng EUR ING MRAeS) with over 15 years experience in the Aerospace, Defence and Rail Industry.