Answer to Question #228763 in Python for Ramya

Question #228763
I was given inputs as 10,9,8,7
I get maximum number as 9. How to solve this problem
1
Expert's answer
2021-08-23T18:32:33-0400
def largest(arr,num):
    return (max(arr))


arr = [10,9,8,7]
num = len(arr)
max1 = largest(arr,num)


print ("Largest is",max1)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS