Create a function that takes n integers and returns the highest number.
Name of function - pp()
Example:
pp(1,2,3) = 3
pp(1,2) = 2
pp(1,2,3,4,5) = 5
Restriction:
• Write one-line cøde for this question.
• Character limit of cøde - Less than 12 characters.
Yes. It's a challenge!
Answers
Answered by
6
Program:
def pp(i):
return sorted(i)[-1]
print(pp(1,2,3))
Output:
3
For your challenge, I have the following códe:
Program:-
pp=max
print(pp(1,2,3))
Output:-
3
anindyaadhikari13:
Excellent! Keep it up! Perfect solution.
Similar questions