# 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)
      
      Python language logo

      Remove function

      beginner
      list
      DSA

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

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.