Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
combination in python math 1

combination in python math

June 16, 2022 by Anurag batra
>>> from math import comb
>>> comb(10,3)
120

Here is what the above code is Doing:
1. We are importing the math module.
2. We are using the comb function from the math module.
3. We are passing in the values 10 and 3 to the comb function.
4. The comb function returns the value 120.

Categories Python Examples
Post navigation
how to extract data from website using beautifulsoup
permutations python
© MyEduKit - 2022 . All Rights Reserved.