Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepy
import math


def get_pi():
    return math.pi


To test get_pi function correctness we will just check if the result is in the range of 3.1415 to 3.1416. 

...

Test passed. As expected, the get_pi() method returns pi function returns Pi value within a range from 3.1415 to 3.1416. 

...