FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Task 3 – The Delivery MAN – Python List
How-ToProgramming Languages

Task 3 – The Delivery MAN – Python List

via Dev.to TutorialHaripriya V3h ago

1.Create a list of five delivery items and print the third item in the list. eg: [“Notebook”, “Pencil”, “Eraser”, “Ruler”, “Marker”] CODE: items = ["Notebook", "Pencil", "Eraser", "Ruler", "Marker"] print(items[2]) OUTPUT: Eraser EXPLANATION: List indexing starts from 0 Third item → index 2 2.A new delivery item “Glue Stick” needs to be added to the list. Add it to the end of the list and print the updated list. CODE: items = ["Notebook", "Pencil", "Eraser", "Ruler", "Marker"] items.append("Glue Stick") print(items) OUTPUT: ['Notebook', 'Pencil', 'Eraser', 'Ruler', 'Marker', 'Glue Stick'] EXPLANATION: append() adds item to the end 3.Insert “Highlighter” between the second and third items and print the updated list. CODE: items = ["Notebook", "Pencil", "Eraser", "Ruler", "Marker", 'Glue Stick'] items.insert(2, "Highlighter") print(items) OUTPUT: ['Notebook', 'Pencil', 'Highlighter', 'Eraser', 'Ruler', 'Marker', 'Glue Stick'] EXPLANATION: insert(index, value) adds at specific position 4.

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
2 views

Related Articles

CA 08 - Sort 0s, 1s, and 2s
How-To

CA 08 - Sort 0s, 1s, and 2s

Dev.to • 4h ago

PDF to LaTeX Conversion: Why It's Hard and What Actually Works
How-To

PDF to LaTeX Conversion: Why It's Hard and What Actually Works

Dev.to Tutorial • 4h ago

The Art of Motivation and Inspiration ✨
How-To

The Art of Motivation and Inspiration ✨

Medium Programming • 6h ago

When Understanding Comes Later
How-To

When Understanding Comes Later

Medium Programming • 7h ago

Top 10 Skills Every Developer Must Learn in 2026
How-To

Top 10 Skills Every Developer Must Learn in 2026

Medium Programming • 7h ago

Discover More Articles