Загрузка...

Python Indexing & Slicing Operations | Class Activity | Class 11 Computer Science | New Book 2025

📘 Chapter 2 – Python Programming | Class Activity | Punjab Boards New Book 2025
In this video, we solve an important class activity from Computer Science Class 11 (1st Year) based on the new syllabus 2025 for Punjab Boards (ICS / FA-IT stream).

We are given:
# List: [10, 20, 30, 40, 50, 60, 70, 80]
# Tuple: ("Math", "Science", "English", "History", "Geography")
# String: "Python Programming"
🔍 Activity Tasks Covered:

Access and print the third element from list, tuple, and string

Slice and print elements from index 2 to 5 (list and tuple)

Slice and print characters from index 7 to the end of the string

Use negative indexing to print the last two elements from the list and tuple

Use negative slicing to print characters from the second last to last character of the string

📚 This class activity helps reinforce your understanding of:

Python indexing & slicing

Working with strings, lists, and tuples

Positive vs. negative indexing

Real-world data structure usage

📌 This video is part of a complete lecture series of Chapter 2: Python Programming from the 1st Year Computer Science new syllabus (2025).

Видео Python Indexing & Slicing Operations | Class Activity | Class 11 Computer Science | New Book 2025 канала CS with Sir Iqbal
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять