Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Mar 26th, 2016
47
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.23 KB
| None
|
0
0
raw
download
clone
embed
print
report
import itertools
s="ABCD"
rep=3
a = [i for i in itertools.combinations(s, rep)]
len(a) == math.factorial(len(s)) / (math.factorial(rep) * math.factorial(len(s)-rep))
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
18 min ago | 17.74 KB
Really Simple SSL Load Balancing Fix
1 hour ago | 0.80 KB
Untitled
2 hours ago | 7.11 KB
Untitled
3 hours ago | 6.79 KB
Untitled
4 hours ago | 16.49 KB
Untitled
6 hours ago | 10.79 KB
Warrior - DW Fury
6 hours ago | 13.59 KB
Untitled
7 hours ago | 6.14 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!