fork(1) download
  1. print('{0:.2f}'.format((lambda x: x.count("A") / len(x))(input().split())))
Success #stdin #stdout 0.02s 9044KB
stdin
F B A A B C A D
stdout
0.38