Question: 3) Write a JavaScript script that has subprograms nested three deep and in which each nested subprogram references variables defined in all of its enclosing

3) Write a JavaScript script that has subprograms nested three deep and in which each nested subprogram references variables defined in all of its enclosing subprograms.

4) Repeat Programming Exercise 3 with Python.

I ONLY NEED #4 awnsered, number 3 is just for REFERENCE,

below is my start of what i've done

working python code compiled on ideone

# your code goes here # your code goes here def sub1(): print"Hello" def sub2(): sub1() print"Inside sub 2" def sub3(): sub2() print "Inside sub 3" sub3()

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!