Question: THIS PROBLEM IS AVAILABLE ONLINE PLEASE CHECK BEFORE POSTING: http://www.codestepbystep.com/problem/view/python/parameters/three_consecutive Write a function named three_consecutive that accepts three integers as parameters and returns True if
THIS PROBLEM IS AVAILABLE ONLINE PLEASE CHECK BEFORE POSTING: http://www.codestepbystep.com/problem/view/python/parameters/three_consecutive
Write a function named three_consecutive that accepts three integers as parameters and returns True if they are three consecutive numbers that is, if the numbers can be arranged into an order such that their values differ by exactly 1. For example, the call of three_consecutive(3, 2, 4) would return True.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
