Answer to Question #330244 in Python for Sai

Question #330244

A person to buy s shoes. Well, turns out there are only m shoes left in the shop. Determine the number of ways by which you can choose s shoes out of the available shoes in the shop. Print the answer in one line.

1
Expert's answer
2022-04-18T08:30:29-0400
print(math.factorial(m) // math.factorial(s) // math.factorial(m-s) if s <= m else 0)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS