Skip to content

madhusudanhasbe/Introduction-to-Python-Programming-Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction to Python Programming Lab Assignments (Semester 1)

This repository contains a collection of Python programs and exercises completed as part of my first-semester coursework.


About the Repository

This repository includes various Python scripts created during lab sessions for Semester 1 - Introduction to Python Programming.
Each file demonstrates the implementation of key programming concepts such as:

  • Variables and Data Types
  • Conditional Statements
  • Loops (For and While)
  • Functions and Recursion
  • Lists, Tuples, and Dictionaries
  • File Handling
  • Basic Algorithmic Thinking

Key Programs & Features

1. Student Management System

  • Add, remove, and display students
  • Calculate average marks
  • Simple file handling for storing student data
  • Basic login system for teacher authentication

2. Surface Area of a Rectangular Prism

  • Calculate the surface area given the dimensions of the prism

3. Rotate Word Function

  • Rotate letters in a string by a given number of positions using ASCII manipulation

4. List Operations

  • Generate lists of numbers that are multiples of:
    • 5 and 6
    • 2 and 4

5. Alphabet List Slicing

  • Demonstrate list slicing with user-defined start and end indexes

6. Character Occurrence Counter

  • Count how many times a specific character appears in a string (case insensitive)

7. Contact Book

  • Simple phonebook that:
    • Checks for existing contacts
    • Adds new contacts with validation
    • Ensures correct phone number length

8. Dictionary Methods Demonstration

  • Use of fromkeys() and clear() functions in Python dictionaries

9. Tuple Membership and List Conversion

  • Check if a value exists in a tuple
  • Convert a list into a tuple

10. File Character Frequency Counter

  • Read a text file
  • Count and display the frequency of each alphabet character

Releases

No releases published

Packages

No packages published

Languages