Answer
The code is attached.
Step-by-step explanation:
I wrote a function in python, the steps are as follows
- selects 3 integers randomly between 1 and 13 and assigns these integers to variables named spade1,spade2 and spade3
- sets a counter variable and defaults to 0
- if spade1==spade2 and spade1==spade3 then increases the counter by one
- does this 100 times.
- calculates the probability of getting same card for each pick by returning counter/100