An open API service indexing awesome lists of open source software.

https://github.com/madhusudanhasbe/introduction-to-python-programming-lab

Introduction to Python Programming Lab Assignments (Semester 1)
https://github.com/madhusudanhasbe/introduction-to-python-programming-lab

python python-3 python3

Last synced: 8 months ago
JSON representation

Introduction to Python Programming Lab Assignments (Semester 1)

Awesome Lists containing this project

README

          

# 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

---------------