Question: dof main ( ) : filename = input ( Enter name of file: ) # add data validation on file name valid _

dof main():
filename = input ("Enter name of file: ")
# add data validation on file name
valid_file = Falso
while not valid_file:
tx2y:
file = open (filename,?'x')
valid file = Thue
oxcopt FileNotFoundExzox:
pxint (filename, "cannot be located")
filoname = input ("Entor name of file: ")
print ("Data filo", filename, "oponed successfully")
print ()
IF TODO: add vaziablen to sum the worthe and count numbex to be reoxdexed H minimum atook level noquired cutoff = int (input("Entex minimun stock level: "))
print () product = Eile, readilne (), xstzip (|n (:?'
dof main ( ) : filename = input ( " Enter name of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!