Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I tried to set up error message in read_file but the expected output does not recognize my coding. Could you help me to solve it?

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

I tried to set up error message in read_file but the expected output does not recognize my coding.

Could you help me to solve it?

3.1 Starting the script using the command line, with invalid path arguments, shall result in the error message being printed Case insensitive i Ignore trailing whitespace i Ignore all whitespace i Substring i Regex i 1. Traceback (most recent call last): 2. .File. "Lab3_1.py", line.64, in. 3. ..main() 4. "File. "Lab3_1.py", line.55, in main 5. ...dictionary1 = read_file (arg1) 6. .File."Lab3_1.py", line.23, in read_file 7. ..raise era 8. .File "Lab3_1.py", line.18, in read_file 9. ...with open(filename, ' rb ) as file: 10. FileNotfoundError: [Errno.2] No such.file.or directory: 'not_valid.bin' 3.1 Starting the script using the command line, with invalid path arguments, shall result in the error message being printed Case insensitive i Ignore trailing whitespace i Ignore all whitespace i Substring i Regex i 1. Traceback (most recent call last): 2. .File. "Lab3_1.py", line.64, in. 3. ..main() 4. "File. "Lab3_1.py", line.55, in main 5. ...dictionary1 = read_file (arg1) 6. .File."Lab3_1.py", line.23, in read_file 7. ..raise era 8. .File "Lab3_1.py", line.18, in read_file 9. ...with open(filename, ' rb ) as file: 10. FileNotfoundError: [Errno.2] No such.file.or directory: 'not_valid.bin

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Performance Audit Report Property Assessment Division Department Of Revenue

Authors: Montana Legislature Office Of The L

1st Edition

1019260211, 978-1019260210

More Books

Students also viewed these Accounting questions

Question

Describe how organizational culture can influence team creativity.

Answered: 1 week ago

Question

4. Why would a company enter into an interest rate swap?

Answered: 1 week ago

Question

722 57x 38x 361

Answered: 1 week ago