cottoncandy2426 cottoncandy2426
  • 22-08-2019
  • Computers and Technology
contestada

What is runtime error in Python? Provide an example

Respuesta :

ExieFansler ExieFansler
  • 03-09-2019

Answer:

If the program is syntactically correct means there are no syntax errors in the program the python interpreter will execute the program.But if the program exits unexpectedly then there exists a run-time error in the python program.

For Example:-

  1. Accessing a list element which does not exists.
  2. divide by 0.
  3. Accessing a file which does not exists.
  4. Performing operation on incompatible types.

For ex:-

my_list=[1,34,7,3,7,8]

print(my_list[6])

This code will produce run-time error.

Answer Link

Otras preguntas

1. (30 pts) Let x(t) = cos(πt/2) be a continuous-time signal, a. Sketch the signal for -4 b. Find the fundamental period of the signal (if it is periodic). c. D
Can someone help with all these problems?. Give me the right solutions and the winner will recive a brainly.
Can someone help with me
which of the following is placed in the credit column of the trial balancea.purchasesb. rent expensesfurnituresales
Our cats and dog stays at a neighbors house when we go on vacation
Write each expression without the absolute value symbol |3x+12|
A cone has a base radius of 4.3 cm and perpendicular height of 8.4 cm. It has the same volume as a sphere. Find the radius of the sphere.
i need this quick ......................
• In Chapter 7, look at the pie chart in the "How Does Consumer Demand Affect The Nation's Economy?" section and complete the following questions: 1. In your op
Pls help Find the area