Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
# Import math Library import math # Initialize the number of items to choose from n = 7 # Initialize the number of possibilities to choose k = 5 # Print total number of possible combinations print (math.comb(n, k))
21