Guest User

Untitled

a guest
Mar 26th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import itertools
  2. s="ABCD"
  3. rep=3
  4. a = [i for i in itertools.combinations(s, rep)]
  5. len(a) == math.factorial(len(s)) / (math.factorial(rep) * math.factorial(len(s)-rep))
Advertisement
Add Comment
Please, Sign In to add comment