Project 1: Martingale
martingale.py
- Returns
The GT username of the student
- Return type
str
get_spin_result
(win_prob)Given a win probability between 0 and 1, the function returns whether the probability will result in a win.
- Parameters
win_prob (float) – The probability of winning
- Returns
The result of the spin.
- Return type
bool
gtid
()- Returns
The GT ID of the student
- Return type
int
test_code
()Method to test your code