Write a Python program to remove the first item from a specified list


Introduction

Write a Python program to remove the first item from a specified list. I have used python 3.7 compiler for debugging purpose.


techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

  1. Car = ["AUDI", "FERRARI", "HONDA", "Bentley", "Bugatti"]
  2. print("\nOriginal Car: ",Car)
  3. del Car[0]
  4. print("After removing the first Car: ",Car)
  5. print()
  6.  

Result

python language techstudy.org

     





Related Topics




Popular Posts