PyTest - Writing Assertions
Find the problem in this pytest code:
numbers = [1, 2, 3] assert 4 not in numbers
numbers = [1, 2, 3] assert 4 not in numbers
numbers. Since 4 is not in the list, this is correct.assert 4 not in numbers is valid and requires no parentheses.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions