1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Anit [1.1K]
4 years ago
12

Describe how catching exceptions can help with file errors. Write three Python examples that actually generate file errors on yo

ur computer and catch the errors with try: except: blocks. Include the code and output for each example in your post. Describe how you might deal with each error if you were writing a large production program. These descriptions should be general ideas in English, not actual Python code.
Computers and Technology
1 answer:
vovangra [49]4 years ago
8 0

Answer:

Three python errors are; import error, value error, and key error.

Explanation:

Errors occur in all programming languages and just like every other language, python has error handling techniques like the try and except and also the raise keyword.

A value error occurs when an output of a variable or expression gives an unexpected value. Import error results from importing a module from an unknown source while a key error is from a wrong input keypress.

Catching these errors and raising an error gives more control and continuity of the source code.

You might be interested in
A Network Attached Storage device is good for _____.
igomit [66]

Answer:

sharing data across multiple workstations on the same network

Explanation:

A Network Attached Storage device is good for sharing data across multiple workstations on the same network.

3 0
3 years ago
Read 2 more answers
What do the stapedius and gluteus maximus have in common?<br> this is a science question
jenyasd209 [6]

Answer:

What do the stapedius and gluteus maximus have in common? They move the hips and thighs. They are attached to bones. They are the largest muscles.

Explanation:

5 0
3 years ago
Read 2 more answers
This standard library function returns a random floating-point number in the range of 0.0 up to 1.0 (but not including 1.0).
natulia [17]

Answer:

The answer would be A: Random

Explanation:

The random() function returns a generated random number (a pseudorandom number)

5 0
3 years ago
Businesses use ____ to save on travel costs and lodging, car fleets, and the time of highly salaried employees, whether they wor
Daniel [21]

Answer:

The answer is "Videoconferencing"

Explanation:

Video conferencing is a process, that uses communicating devices to convey sound and video information. It is used to involves the performances and meeting more than two members at various sites.  

  • It enables the users to meet a person face to face by different locations, and avoid moving to a single site.
  • This type of communication is used everywhere in the world, it saves the time of highly salaried employees, and provides the usage of different sites in the same organization.  
3 0
3 years ago
Write some difference between the third and fourth generation of computer?​
Whitepunk [10]

Answer:

<em>third generation of computer are larger than fourth generation. they are slower than fourth generation. IC chips were used whereas in fourth generation microprocessor were used. fourth generation consumed less electricity than third generation.</em>

<h3>I HOPE THIS WILL HELP YOU IF NOT THEN SORRY</h3>

HAVE A GREAT DAY :)

4 0
3 years ago
Read 2 more answers
Other questions:
  • The addElement operation for the linked implementation must determine the parent of the next node to be inserted. Why?
    5·1 answer
  • A word that has a specific, predefined meaning in a programming language is called
    8·1 answer
  • Assume that we are using 0-1 integer programming model to solve a capital budgeting problem and xj = 1 if project j is selected
    6·2 answers
  • 30 points!! What should I do if I plug my computer in and it starts making noises and sounds and it starts smelling.
    9·1 answer
  • Meaning of page break​
    8·1 answer
  • Caitlyn's Crafty Creations computes a retail price for each product as the cost of materials plus $14 multiplied by the number o
    10·1 answer
  • Drag the correct type of update to its definition.
    5·1 answer
  • 1. (15%) Consider a computer system with three users: Alice, Bob, and Cyndy. Alice owns the file a, and Bob and Cyndy can read i
    9·1 answer
  • IMPORTANT!!<br><br> How can you get real answer keys for edmentum (plato) courses as a student?
    11·1 answer
  • Write a pseudocode to print the sum of first 10 terms in the series: <br> 2, 4, 9, 16, 25…
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!