获取您的
Python
服务器
×
更改方向
更改主题,深色/浅色
前往 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