React Machine Coding Practice Python