Relative Frequency by jamesaxl

while 1:s=raw_input();r=s[2:].count(s[0])/float(len(s[2:]));print '%f'%r

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top