fork download
  1. import string;r=raw_input;a,b=r(),r();print'%s and %s have %i out of %i chances of love'%(a,b,sum(map(lambda c:c in a and c in b,string.letters)),len(a)*len(b))
  2.  
Success #stdin #stdout 0.02s 9024KB
stdin
Jill
Bill
stdout
Jill and Bill have 2 out of 16 chances of love