Array Insertion at Beginning
📖 Scenario: You are managing a list of daily tasks. Sometimes, you get an urgent task that needs to be done first. You want to add this urgent task at the beginning of your task list.
🎯 Goal: Build a program that inserts a new task at the beginning of an existing list of tasks.
📋 What You'll Learn
Create a list called
tasks with exact tasks: 'email', 'meeting', 'coding'Create a variable called
urgent_task with the value 'call'Insert the
urgent_task at the beginning of the tasks listPrint the
tasks list after insertion💡 Why This Matters
🌍 Real World
Managing daily tasks or priorities often requires adding urgent items at the start of a list to handle them first.
💼 Career
Understanding how to manipulate lists by inserting items at specific positions is a fundamental skill in programming and data handling.
Progress0 / 4 steps