Question: Hi, I have the problem with the def This is the program that I wrote: But when I ran the program, it shows: Traceback (most

Hi, I have the problem with the "def"

This is the program that I wrote:Hi, I have the problem with the "def" This is the program

But when I ran the program, it shows:

Traceback (most recent call last): File , line 8, in max = firstNmuber NameError: name 'firstNmuber' is not defined

Can you help me to edit the program?

firstNumbereval(inputC"Enter first number:") secondNumbereval(input(" Enter second number: ")) thirdNumbereval(inputC"Enter third number:") max-firstNmuber if secondNumber > max: max-secondNumber print(" The secondNumber is max" else: print(" The firstNumber is max") if thirdNumber max: max-thirdNumber print(" The thirdNumber is max") else: print(" The secondNumber is max

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 Databases Questions!