Two Groups Compared
Two groups took the same test. Return the p-value of a two-sided t-test for a difference in their means that does not assume the two groups have equal variances (Welch's test).
Example 1
a [1,2,3,4,5]
b [1,2,3,4,5]
returns 1.0
The two groups are identical.
Constraints
3 <= len(a), len(b) <= 40- Neither group has all scores equal
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.