human
What is a code to program to find largest element in an array and the other steps required given the following:
Program to find largest element in an array | returns maximum in arr [ ] of size n.
driver code"
How can the above be solved in Python?
assistant
#Here is code to program to find largest element in an array and the other steps required.
 def largest ( arr , n ) :
	return max ( arr )
arr = [ 10 , 324 , 45 , 90 , 9808 ]
n = len ( arr )
print ( largest ( arr , n ) )