Skip to content

AUDAY-lab/python-basic-programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-Basic-Programs

This repository contains basic Python programs for common tasks.
Screenshots for each solution will be added in the Images folder.

Task Solutions

1. Grade Checker (If-Else Statement)

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.

2. Student Grades (Dictionary Operations)

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.

3. Write to a File

File: write_file.py

Writes sample content to sample.txt.

Explanation:

  • Opens/creates sample.txt in write mode.
  • Writes text using write().

4. Read from a File

File: read_file.py

Reads and prints content from sample.txt.

Explanation:

  • Opens sample.txt in read mode.
  • Reads and prints file content.

Images

Screenshots for each solution will be available in the Images folder.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages