CBSE BOARD XII, asked by sabir62, 10 months ago

What will be the output of the following programs?

(1) num = 1
def myfunc ():
return num
print (num)
print (myfunc())
print (num)


(ii) num = 1
def myfunc():
num= 10
return num
print (num)
print (myfunc())
print (num)


(iii) num = 1
def myfunc():
global num
num = 10
print (num)
print (myfunc())
print (num)

(iv) def display():
print("Hello",)
display ( )
print("bye!")​

Answers

Answered by nitukumar912000
6

Answer:

please mark as brainliest

Explanation:

I hope you understand this question very well ok please mark as brainliest please I follow you please mark as brainliest please

Attachments:
Similar questions