This repository contains two Python programs demonstrating basic programming concepts.
A program that manages student marks using a dictionary data structure.
- Stores student names and their corresponding marks in a dictionary
- Allows users to look up marks by entering a student's name
- Provides appropriate feedback if the student is not found
- Run the program:
python Task_1.py - Enter a student's name when prompted
- The program will display:
- The student's marks if found
- A "not found" message if the student doesn't exist in the records
A program that demonstrates various list operations in Python.
- Creates a list of numbers from 1 to 10
- Extracts the first five elements
- Reverses the extracted elements
- Displays both the extracted and reversed lists
- Run the program:
python Task_2.py - The program will automatically display:
- The first five elements from the original list
- The same five elements in reverse order
- Dictionary operations
- List creation and manipulation
- List slicing
- User input handling
- String formatting (f-strings)
- Conditional statements
- Basic Python data structures
- Python 3.x
# To run the student marks program
python Task_1.py
# To run the list manipulation program
python Task_2.py