Question: x = 'James' y = 'Collins' z = 25 lam = lambda x, y, z: x + + is + + y + +str(z) +

x = 'James' y = 'Collins' z = 25 lam = lambda x, y, z: x +"" + "is" + ""+ y + ""+str(z) + "years old" print(lam(James,Collins,25))

Traceback (most recent call last): File "C:/Users/bcolli24/Desktop/Lab1/test.py", line 7, in print(lam(Boyce,Collins,25))

Trying to determine what's up with the python 3.x code. I am constantly receiving the error below with code above. what's up?????

NameError: name 'James' is not defined >>>

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!