We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Artificial Intelligence
- Probability & Statistics - Foundations
- Day 2: Basic Probability Puzzles #2
- Discussions
Day 2: Basic Probability Puzzles #2
Day 2: Basic Probability Puzzles #2
Sort by
recency
|
27 Discussions
|
Please Login in order to post a comment
Python3:
Python code
The instructions kind of cheat. It says "put your answer in the editor" below. There is no editor "below" (there's on to the side). So I figured they must have meant the "custom input", since the program refused to accept an aswer when I tried doing a printf. But when I put an input into the custom input, it said I was wrong (I didn't see that you can't use 3/3 and 3/3 as valid outcomes). So I picked the correct answer, and still got an error. Finally decided to use both a custom input and a printf... and now it works.
So put your answer in the custom input and a printf.
Python 3