python program

1 answer below »
Answered Same DayJan 21, 2021

Answer To: python program

Neha answered on Jan 23 2021
165 Votes
49786/filehandling.txt
245567
49786/readfile.py
# This code is to understand the file handling an
d exception handling in python. Python allows us to create a file and write data in it
# or in any exisitng file. I have used try and except in this code to catch the errors if any exists. Exception handling in python is so easy.
# If any exception occurs then python will stop the compilation and error message will be shown on the screen.
#sys is used to manipulate different parts of this code in the runtime enviroment.
import sys
#The following is a try block. In this block we write the code on which...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here