35.2k views
5 votes
Consider the following code:

val = 50
def example():
val = 15
print (val)
print (val)
example)
print (val)
What is output?
1.
2.
3.

1 Answer

3 votes

I got you bro the answer is 50, 15, 5

User Copper
by
4.9k points