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

      popping out

      0

      0

      avatar
      Mahendra Kumar
      beginner
      List
      DSA

      program to demonstrate list pop() in python.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.