Skip to content

N4tasha-tech/Python-week-4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Newfile Python Assignment

This project demonstrates how to handle Python files by:

  1. Reading the content of the file.

  2. Modifying the content.

  3. Writing the modified content into a new file

  4. Handling errors if the file cannot be read.

Project Structure

  1. Newfile.py # Main python code with functions

  2. README.md # Project documentation.

How It Works

Main Functions

Reads the file specified by input_filename.

Converts the content to uppercase.

Writes the modified content into output_filename.

Prompts the user for the file name.

Modify_file processes the file.

It then handles errors if the file does not exist or cannot be accessed.

How to Run

Save your code in the python file.

Open the terminal in the project folder.

Run the code

About

Week 4 Python Assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages