# take list
      my_list = ['C', 'Java', 'Python', 'HTML', 'Javascript']
      # printing original list
      print('List:', my_list)
      # removed all item from the list
      my_list.clear()
      # print list after all item deletion
      print('New list:', my_list)
      
      Python language logo

      clearing it

      0

      0

      avatar
      Mahendra Kumar
      List
      beginner
      DSA

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

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.