LargestNum

    0

    0

    Mahendra Kumar

    logicgoodPractice

    To find the largest number in the given array of integers

    # Python program to find largest
    # number in a list
    # creating empty list
    list1 = []
    # asking number of elements to put in list
    num = int(input("Enter number of elements in list: "))
    # iterating till num to append elements in list
    for i in range(1, num + 1):
        ele = int(input("Enter elements: "))
        list1.append(ele)
    # print maximum element
    print("Largest element is:", max(list1))
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.