Indlæser opgaven…
This check helps you practice several conditions at once: a direct value, a sum, and a difference. Write a function love6 that takes two integers a and b. Return True if either number is 6, if their sum is 6, or if the absolute difference between them is 6. Otherwise, return False.
6, 4True4, 5False1, 5Truedef love6(a: int, b: int) -> bool:
Log ind for at se indsendelseshistorik
Log indLog ind for at bruge AI-mentor
Log ind6, 4True4, 5False1, 5True3, 3True1, 7True2, 5False