[solved] – Question 99915
Hi I need a better answer than what I came up with. Please help!
Write your own unique Python program that has a runtime error.
I need to know the code of my program, the output demonstrating the runtime error, including the error message, and an explanation on how to fix the error.
I did a very simple one and I know I will get laughed at. I am very new at coding, no platform what so ever so I need a little help from you please.My cheesy example is:
print (python)
The code of my program is : print (python)
Output:
Traceback (most recent call last):
File “C:/New folder/python/runtime practice.py”, line 1, in <module>
print ( python )
NameError: name ‘python’ is not defined
>>>
In order for the code to properly work I will need to add parenthesis to (“python”) so that the word is then defined. Now it will print as I asked.
Is this ok? Or can you help me to make a not so cheesy one?
Expert Answer
OR