Computer Science, asked by bhakatbinita44, 9 months ago

x = 50

def func():

global x

print('x is', x)

x = 2

print('Changed global x to', x)

func()

print('Value of x is', x)​

Answers

Answered by rakeshsandhyagupta
0

Answer:

I don't understand the question

Answered by sumanparia9
0

Answer: x is 50

Changed global x to 2

Value of x is 2

Explanation:

x = 50

def func():

        global x

print('x is', x)

x = 2

print('Changed global x to', x)

func()

print('Value of x is', x)

Similar questions