Question: Help as soon as possible please 1) Write a function named smallest, that takes two arguments (you can safely assume that all arguments will always
1) Write a function named smallest, that takes two arguments (you can safely assume that all arguments will always be integers) and returns lesser value (if the two arguments are equal, then return either value), Do not use the Python min or max functions for this problem. Examples: smallest(1, 2) will return 1 smallest(2, 1) will return 1 smallest(2, 2) will return 2 2) Write a function named longest, that takes two arguments (you can safely assume that all arguments called, it should determine which string is longer, and return that string Examples will always be strings). When this function is longestC abc, ab longestC'hello, 'goodbye) longestC'thursday, 'thursday will return 'abc will return 'goodbye will return 'thursday
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
