Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

a=[] n=int(input("Enter number of elements:")) for i in range(1,n+1): b=int(input("Enter element:")) a.append(b) a.sort() print("Largest element is:",a[n-1])

Debidutta Mishra answered on January 25, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • olst = [] a = int(input()) b = int(input()) for ele in range(a,b+1): if ele%2 != 0: olst.append(ele) print(olst[::-1])
  • How can one find the three largest values of an input array efficiently, namely without having to sort the input array?
  • s=0 def sum(x,y): n=int(input("enter no. of terms") for i in range(n): l=int(input("enter no.")) s=s+l print(s) sum()
  • a=input("enter the number whose table you want to see") for i in range(0,11): print( %s,'x',i,'=' , %s *i,(a))
  • Sort a random array of n integers (accept the value of n from user) in ascending order by using insertion sort algorithm.

  • a=[] n=int(input("Enter number of elements:")) for i in range(1,n+1): b=int(input("Enter element:")) a.append(b) a.sort() print("Largest element is:",a[n-1])

    0
    Popularity 1/10 Helpfulness 1/10 Language whatever
    Link to this answer
    Share Copy Link
    Contributed on Jan 25 2023
    Debidutta Mishra
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.