Computer Science
In the following code, which variables are in the same scope ?
def func1():
a = 1
b = 2
def func2():
c = 3
d = 4
e = 5
Related Questions
Draw flow of execution for the above program.
Find and write the output of the following python code :
a = 10 def call(): global a a = 15 b = 20 print(a) call()
Write a program with a function that takes an integer and prints the number that follows after it. Call the function with these arguments :
4, 6, 8, 2 + 1, 4 - 3 * 2, -3 -2
Write a program with non-void version of above function and then write flow of execution for both the programs.