I have been trying to execute the below code snippet in python 3.6 IDLE by executing the below command, it works for the first time and displays the output
import circle
>>> import circle
Circumference of the circle: 21.99113
Area of the circle: 153.93791
>>> import circle
circle.py
:
PI = 3.14159
r = 7
print('Circumference of the circle: ', 2 * PI * r)
print('Area of the circle: ', PI * r * r)
Expected: The output of the file should always be displayed when i import the. file
Actual: It works for the first time but not again.