Remove function

    0

    1

    Mahendra Kumar

    beginnerlistDSA

    Python program to remove an item from a list using remove function

    # take list
    my_list = ['C', 'Java', 'Python', 'HTML', 'Javascript']
    # printing original list
    print('List:', my_list)
    # removed HTML from the list
    my_list.remove('HTML')
    # print list after item deletion
    print('New list:', my_list)
    
    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.