Selecting items from a multiset

When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!

If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer! :slight_smile:

So I was doing some lessons and for some reason the code is glitching

https://www.codecademy.com/journeys/computer-science/paths/cscj-22-math-for-computer-science/tracks/cscj-22-math-for-computer-science/modules/cscj-22-permutations-and-combinations/lessons/permutation-combination/exercises/selecting-items-from-a-multiset

I got answer 1 and 2 with a number, but on number 3 it got stuck I got number 1 and 2 correctly by number instead of formula, but it wouldn’t work on question 3, even though I’m pretty sure it worked one time. For some reason the numbers is not working on question 1

the answers are 182, then 45, then 8190

Why is it glitching and not being able to go through unless you use the code?

is the answer on the third question correct?(8190)

sorry figured out it was 4095, and 91 not 182