Skip to content

AryaJagtap/Module-5-Assignment-4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Module-5-Assignment-4

ASSIGNMENT 4: Files, Exceptions, and Errors in Python

This repository contains solutions for Assignment 4 from Module 5 of the Python course.

๐Ÿ“Œ Tasks

Task 1: Read a File and Handle Errors

  • Opens and reads a text file named sample.txt.
  • Prints its content line by line.
  • Handles errors gracefully if the file does not exist.

Task 2: Write and Append Data to a File

  • Takes user input and writes it to a file named output.txt.
  • Appends additional data to the same file.
  • Reads and displays the final content of the file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages