batting_average = [1, 0, 0, 1, 0, 0, 0, 1, 0, 1]
count = 0
answer = 0

for i in range(len(batting_average)):
    if batting_average[i] == 1:
        count += 1

answer = count / 10

if answer >= 0.3:
    print(f"{answer},우수타자")
else:
    print(f"{answer},연습 필요")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: