Question: 4. What is the output of the following Python program? #1 /usr/bin/Python3 foo , bar , def main(): foo ,goose, def cat): print (foo) def
4. What is the output of the following Python program? #1 /usr/bin/Python3 foo , bar , def main(): foo ,goose, def cat): print (foo) def dog(): y = 'donkey' foo = y + ,snake, print(foo) def duck): global foo foo foo 2 print (foo) duck ) cat ) dog() cat ) dog) main()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
