Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in python The number 6 is a truly great number. Given two int values, a and b, return True if either one is 6. Or
in python
The number 6 is a truly great number. Given two int values, a and b, return True if either one is 6. Or if their sum or difference is 6. Note: the function abs(num) computes the absolute value of a number.
love6(6, 4) returns True love6(4, 5) returns False love6(1, 5) returns True ''' def love6(a,b): ## if a||b ==6: ## return True ## elif a+b == 6: ## return True ## elif a- ## return True if a OR b == 6 || a+b == 6 || a-b == 6 || b-a == 6 else False pass
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started