Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python question 2. (5 points) what will be the output of the program? Please explain it in details. 1 a 2. def fun1(): 3 a

python question image text in transcribed
2. (5 points) what will be the output of the program? Please explain it in details. 1 a 2. def fun1(): 3 a = 2 4. def fun2(): 5 print(100) print(a) 7 fun2() def fun2(): 10 global a a - 3 print(200) 13 14 fun1() 15 print(a) 16 fun2() 17 print(a) 11 12

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

1. What is Ebola ? 2.Heart is a muscle? 3. Artificial lighting?

Answered: 1 week ago

Question

1. Which is the most abundant gas presented in the atmosphere?

Answered: 1 week ago