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

Help as soon as possible please  Help as soon as possible please 1) Write a function named

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!