Načítava sa úloha…
This kind of check is like a discount rule: it works if the target number is already present or appears as a sum. Write a function makes10 that takes two integers a and b. Return True if either number is 10 or if their sum is 10; otherwise, return False.
9, 10True9, 9False1, 9Truedef makes10(a: int, b: int) -> bool:
Prihláste sa, aby ste videli históriu odoslaní
Prihlásiť saPrihláste sa, aby ste mohli používať AI mentora
Prihlásiť sa9, 10True9, 9False1, 9True10, 1True5, 5True-9, 10True