DIT (PBTE) Lab #20 | Find All Names Starting with Letter ‘B’ | Programming Lab (Python)

Welcome to the Complete Diploma in Information Technology (DIT)
00: 00 πŸš€ Introduction – DIT Python Programming Course (PBTE)
00: 50 πŸ“– Lab #20 Problem Statement
01: 10 πŸ’» Writing the Python Program Step by Step
01: 45 πŸ” For Loop to Iterate over each element in List
03: 00 πŸ–₯️ startswith() function
04: 58 ▢️ Why do we use for loop in a list?
05: 20 ⚑ Source Code Implementation in PyCharm IDE
07: 00 πŸŽ“ To find a name startswith β€œB” and endswith β€œa”
07: 49 πŸ“’ Like, Share & Subscribe for Complete DIT Python Course
This video course based on the Punjab Board of Technical Education (PBTE), Pakistan syllabus.

#DIT #PBTE #Python #PythonProgramming #IntroductionToProgramming #DITPakistan #PBTEDIT #Programming #PythonTutorial #Lab20 #MuhammadAshrafSiddiqui #LearnPython #PythonForBeginners #PakistanEducation #diplomaininformationtechnology #ashrafsiddiqui

In this lecture, we solve Lab #20 from the First Semester – Introduction to Programming (Python) course.

πŸ“˜ Lab #20

Write a script that finds all the elements in a list that start with the letter ‘B’.

Names = [“Ali”, “Shayan”, “Baqir”, “Bareera”, “Zulfiqar”]
🎯 What You Will Learn

βœ… Python Lists
βœ… String Methods
βœ… Conditional Statements
βœ… Looping Through Lists
βœ… Finding Elements That Start with a Specific Letter
βœ… Beginner-Friendly Python Programming

This lecture is designed according to the latest PBTE DIT syllabus and is explained step by step in a simple and practical manner. Whether you are a beginner or preparing for exams, this series will help you build a strong foundation in Python programming.

πŸ“š DIT Course

First Semester
πŸ“– Introduction to Programming (Python)

πŸ‘¨β€πŸ« Instructor: Muhammad Ashraf Siddiqui

πŸ“Œ Subscribe for More Lectures

βœ” Complete PBTE DIT Python Course
βœ” Lab-wise Practical Solutions
βœ” Real-Life Programming Examples
βœ” Assignment Solutions
βœ” Exam Preparation
βœ” Beginner-Friendly Explanations

πŸ”” Don’t forget to Like, Share, Comment, and Subscribe for upcoming DIT video lectures.
Welcome to your ultimate learning hub for ICS Computer Science & Entrepreneurship (Punjab, Pakistan – PTBB 2025). We provide easy-to-understand lectures, notes, solved exercises, and exam prep for 1st and 2nd-year ICS students. Subscribe for Python programming, data analytics, software development, digital literacy, and more β€” all aligned with the latest PTBB syllabus. Learn smart, score high!