EOFError input message pops up while trying to run a calculator code. It's for an assignment and the defined function is necessary.
from math import *
def calculate(rlist):
output = list()
for j in range(len(rlist)):
s = round(rlist[j] ** 2 * pi, 2)
output.append(s)
print(output)
r = list(map(float, input().split()))
calculate(r)