This repository contains basic Python programs for common tasks.
Screenshots for each solution will be added in the Images folder.
File: grade_checker.py
Checks the score entered by the user and assigns a grade (A, B, C, D, F) using if-else statements.
Explanation:
- Takes user input for score.
- Uses if-else to determine grade.
File: student_grades.py
Manages student names and grades using a dictionary. Supports adding/updating students and viewing all grades.
Explanation:
- Menu-driven program.
- Add/update student grades.
- View all grades.
File: write_file.py
Writes sample content to sample.txt.
Explanation:
- Opens/creates
sample.txtin write mode. - Writes text using
write().
File: read_file.py
Reads and prints content from sample.txt.
Explanation:
- Opens
sample.txtin read mode. - Reads and prints file content.
Screenshots for each solution will be available in the Images folder.