This script demonstrates how to use a Python dictionary to store student names and their corresponding marks. It allows the user to input a student's name and then retrieves and displays their marks if the student exists in the dictionary.
- Uses a dictionary to store student data.
- Takes user input for student name.
- Displays marks if found, or a "not found" message if the name is missing.
This script showcases how to manipulate Python lists using slicing. It creates a list of numbers from 1 to 10, extracts the first five elements, and then reverses those elements.
- Generates a list of numbers from 1 to 10.
- Uses slicing to extract and reverse elements.
- Prints both the original and reversed lists