This repository contains solutions to a variety of Python exercises aimed at improving basic programming skills. Below are the descriptions of the exercises included:
- Create a list containing the numbers from 1 to 10.
- Display only the even numbers from the list.
- Create a list containing the letters of the alphabet.
- Ask the user to enter a letter.
- Remove the entered letter from the list and display the updated list.
- Create a list containing 5 items of your choice.
- Swap the first item with the last item in the list.
- Display the updated list.
Problem Statement:
In a library, several students must return their books before a due date.Tasks:
- Write a function that takes the expected return date and the actual return date as parameters.
- Calculate the number of days late for each student.
- Write a procedure that applies a fine of 5 units per day of delay and displays the total fine amount.
- Use a loop to process multiple students consecutively, as long as they wish.
Problem Statement:
Ahmad and Khalid have grades in n subjects, where the coefficient for each subject is 1.Tasks:
- Read the grades of Ahmad and Khalid.
- Calculate their respective averages.
- Display the averages.
- Identify and display the name of the student with the better average.
- Clone the repository to your local machine.
- Run the exercises using any Python interpreter of your choice.
- Follow the prompts in the console for interactive exercises.
Feel free to contribute by improving existing solutions or adding more exercises!