SlideShare a Scribd company logo
1 of 1
Download to read offline
Q1a. Is it mandatory for all functions to have a return statement? Q1b. If you do not specify a
return statement in a function, what is returned by the function at the end of its execution flow?
Q1c. Explain why the values of the variables a and b (as printed at the end of the execution) are 2
and 40 respectively. def doSomething (a):b=5c=ba return c def doSomethingToo (): global a
global bb=baa=2b=10b+= doSomething(a) doSomethingToo() print (f"a={a}nb={b})

More Related Content

More from altajhaji20

Q3 35000 Points The diagram on the left represents a quiescent center.pdf
 Q3 35000 Points The diagram on the left represents a quiescent center.pdf Q3 35000 Points The diagram on the left represents a quiescent center.pdf
Q3 35000 Points The diagram on the left represents a quiescent center.pdfaltajhaji20
 
Q2.21. Which of the following statements about intraspecific competit.pdf
 Q2.21. Which of the following statements about intraspecific competit.pdf Q2.21. Which of the following statements about intraspecific competit.pdf
Q2.21. Which of the following statements about intraspecific competit.pdfaltajhaji20
 
Q2.1 11000 Points The cloudy (cdy) recessive mutation causes seedling.pdf
 Q2.1 11000 Points The cloudy (cdy) recessive mutation causes seedling.pdf Q2.1 11000 Points The cloudy (cdy) recessive mutation causes seedling.pdf
Q2.1 11000 Points The cloudy (cdy) recessive mutation causes seedling.pdfaltajhaji20
 
Q25 dominance 15 Points B is an allele that makes frogs green, whil.pdf
 Q25 dominance 15 Points B is an allele that makes frogs green, whil.pdf Q25 dominance 15 Points B is an allele that makes frogs green, whil.pdf
Q25 dominance 15 Points B is an allele that makes frogs green, whil.pdfaltajhaji20
 
Q2. Match the graphs with their descriptions. DAG [ Choose ] a graph .pdf
 Q2. Match the graphs with their descriptions. DAG [ Choose ] a graph .pdf Q2. Match the graphs with their descriptions. DAG [ Choose ] a graph .pdf
Q2. Match the graphs with their descriptions. DAG [ Choose ] a graph .pdfaltajhaji20
 
Q2. (10 Points) Indirect Addressing Mode Instruction 002D J@ RETADR 3.pdf
 Q2. (10 Points) Indirect Addressing Mode Instruction 002D J@ RETADR 3.pdf Q2. (10 Points) Indirect Addressing Mode Instruction 002D J@ RETADR 3.pdf
Q2. (10 Points) Indirect Addressing Mode Instruction 002D J@ RETADR 3.pdfaltajhaji20
 
Q19 Glycolaldehyde 15 Points Glycolaldehyde inhibits the Calvin cyc.pdf
 Q19 Glycolaldehyde 15 Points Glycolaldehyde inhibits the Calvin cyc.pdf Q19 Glycolaldehyde 15 Points Glycolaldehyde inhibits the Calvin cyc.pdf
Q19 Glycolaldehyde 15 Points Glycolaldehyde inhibits the Calvin cyc.pdfaltajhaji20
 
Q2 (10 points). Regarding SVB banks failure, please list at least tw.pdf
 Q2 (10 points). Regarding SVB banks failure, please list at least tw.pdf Q2 (10 points). Regarding SVB banks failure, please list at least tw.pdf
Q2 (10 points). Regarding SVB banks failure, please list at least tw.pdfaltajhaji20
 
Q2 The repair and maintenance cost of a machine is $50,000 per yea.pdf
 Q2 The repair and maintenance cost of a machine is $50,000 per yea.pdf Q2 The repair and maintenance cost of a machine is $50,000 per yea.pdf
Q2 The repair and maintenance cost of a machine is $50,000 per yea.pdfaltajhaji20
 
Q12 electron acceptor 15 Points What is the terminal electron accep.pdf
 Q12 electron acceptor 15 Points What is the terminal electron accep.pdf Q12 electron acceptor 15 Points What is the terminal electron accep.pdf
Q12 electron acceptor 15 Points What is the terminal electron accep.pdfaltajhaji20
 
Q2 A discrete probability distribution is given by the table i) Find.pdf
 Q2 A discrete probability distribution is given by the table i) Find.pdf Q2 A discrete probability distribution is given by the table i) Find.pdf
Q2 A discrete probability distribution is given by the table i) Find.pdfaltajhaji20
 
Q1. (1)What are the four principles to design an efficient and ef.pdf
 Q1. (1)What are the four principles to design an efficient and ef.pdf Q1. (1)What are the four principles to design an efficient and ef.pdf
Q1. (1)What are the four principles to design an efficient and ef.pdfaltajhaji20
 
Q1. Write a program that has an double array intArray[] that has .pdf
 Q1. Write a program that has an double array intArray[] that has .pdf Q1. Write a program that has an double array intArray[] that has .pdf
Q1. Write a program that has an double array intArray[] that has .pdfaltajhaji20
 
Q1 - Medical Diagnostic Database [30 points] You are given a file con.pdf
 Q1 - Medical Diagnostic Database [30 points] You are given a file con.pdf Q1 - Medical Diagnostic Database [30 points] You are given a file con.pdf
Q1 - Medical Diagnostic Database [30 points] You are given a file con.pdfaltajhaji20
 
Q.6 Let (X1,X2X3�,Xn)N(,1) and let prior distribution of be N(0,1).pdf
 Q.6 Let (X1,X2X3�,Xn)N(,1) and let prior distribution of  be N(0,1).pdf Q.6 Let (X1,X2X3�,Xn)N(,1) and let prior distribution of  be N(0,1).pdf
Q.6 Let (X1,X2X3�,Xn)N(,1) and let prior distribution of be N(0,1).pdfaltajhaji20
 
Q.3 L& A Infrastructure Ltd (L&A), a listed company seeks to acqu.pdf
 Q.3 L& A Infrastructure Ltd (L&A), a listed company seeks to acqu.pdf Q.3 L& A Infrastructure Ltd (L&A), a listed company seeks to acqu.pdf
Q.3 L& A Infrastructure Ltd (L&A), a listed company seeks to acqu.pdfaltajhaji20
 
Q. You have instance variable as name, age, id. And you have two memb.pdf
 Q. You have instance variable as name, age, id. And you have two memb.pdf Q. You have instance variable as name, age, id. And you have two memb.pdf
Q. You have instance variable as name, age, id. And you have two memb.pdfaltajhaji20
 
Q Presented below is information related to ABC Company. [[ A. Pre.pdf
 Q Presented below is information related to ABC Company. [[ A. Pre.pdf Q Presented below is information related to ABC Company. [[ A. Pre.pdf
Q Presented below is information related to ABC Company. [[ A. Pre.pdfaltajhaji20
 
Q.2 Allegro Company has gathered the following information. Require.pdf
 Q.2 Allegro Company has gathered the following information.  Require.pdf Q.2 Allegro Company has gathered the following information.  Require.pdf
Q.2 Allegro Company has gathered the following information. Require.pdfaltajhaji20
 
public class weird { public static void main(String[] args){ int nu.pdf
 public class weird { public static void main(String[] args){ int nu.pdf public class weird { public static void main(String[] args){ int nu.pdf
public class weird { public static void main(String[] args){ int nu.pdfaltajhaji20
 

More from altajhaji20 (20)

Q3 35000 Points The diagram on the left represents a quiescent center.pdf
 Q3 35000 Points The diagram on the left represents a quiescent center.pdf Q3 35000 Points The diagram on the left represents a quiescent center.pdf
Q3 35000 Points The diagram on the left represents a quiescent center.pdf
 
Q2.21. Which of the following statements about intraspecific competit.pdf
 Q2.21. Which of the following statements about intraspecific competit.pdf Q2.21. Which of the following statements about intraspecific competit.pdf
Q2.21. Which of the following statements about intraspecific competit.pdf
 
Q2.1 11000 Points The cloudy (cdy) recessive mutation causes seedling.pdf
 Q2.1 11000 Points The cloudy (cdy) recessive mutation causes seedling.pdf Q2.1 11000 Points The cloudy (cdy) recessive mutation causes seedling.pdf
Q2.1 11000 Points The cloudy (cdy) recessive mutation causes seedling.pdf
 
Q25 dominance 15 Points B is an allele that makes frogs green, whil.pdf
 Q25 dominance 15 Points B is an allele that makes frogs green, whil.pdf Q25 dominance 15 Points B is an allele that makes frogs green, whil.pdf
Q25 dominance 15 Points B is an allele that makes frogs green, whil.pdf
 
Q2. Match the graphs with their descriptions. DAG [ Choose ] a graph .pdf
 Q2. Match the graphs with their descriptions. DAG [ Choose ] a graph .pdf Q2. Match the graphs with their descriptions. DAG [ Choose ] a graph .pdf
Q2. Match the graphs with their descriptions. DAG [ Choose ] a graph .pdf
 
Q2. (10 Points) Indirect Addressing Mode Instruction 002D J@ RETADR 3.pdf
 Q2. (10 Points) Indirect Addressing Mode Instruction 002D J@ RETADR 3.pdf Q2. (10 Points) Indirect Addressing Mode Instruction 002D J@ RETADR 3.pdf
Q2. (10 Points) Indirect Addressing Mode Instruction 002D J@ RETADR 3.pdf
 
Q19 Glycolaldehyde 15 Points Glycolaldehyde inhibits the Calvin cyc.pdf
 Q19 Glycolaldehyde 15 Points Glycolaldehyde inhibits the Calvin cyc.pdf Q19 Glycolaldehyde 15 Points Glycolaldehyde inhibits the Calvin cyc.pdf
Q19 Glycolaldehyde 15 Points Glycolaldehyde inhibits the Calvin cyc.pdf
 
Q2 (10 points). Regarding SVB banks failure, please list at least tw.pdf
 Q2 (10 points). Regarding SVB banks failure, please list at least tw.pdf Q2 (10 points). Regarding SVB banks failure, please list at least tw.pdf
Q2 (10 points). Regarding SVB banks failure, please list at least tw.pdf
 
Q2 The repair and maintenance cost of a machine is $50,000 per yea.pdf
 Q2 The repair and maintenance cost of a machine is $50,000 per yea.pdf Q2 The repair and maintenance cost of a machine is $50,000 per yea.pdf
Q2 The repair and maintenance cost of a machine is $50,000 per yea.pdf
 
Q12 electron acceptor 15 Points What is the terminal electron accep.pdf
 Q12 electron acceptor 15 Points What is the terminal electron accep.pdf Q12 electron acceptor 15 Points What is the terminal electron accep.pdf
Q12 electron acceptor 15 Points What is the terminal electron accep.pdf
 
Q2 A discrete probability distribution is given by the table i) Find.pdf
 Q2 A discrete probability distribution is given by the table i) Find.pdf Q2 A discrete probability distribution is given by the table i) Find.pdf
Q2 A discrete probability distribution is given by the table i) Find.pdf
 
Q1. (1)What are the four principles to design an efficient and ef.pdf
 Q1. (1)What are the four principles to design an efficient and ef.pdf Q1. (1)What are the four principles to design an efficient and ef.pdf
Q1. (1)What are the four principles to design an efficient and ef.pdf
 
Q1. Write a program that has an double array intArray[] that has .pdf
 Q1. Write a program that has an double array intArray[] that has .pdf Q1. Write a program that has an double array intArray[] that has .pdf
Q1. Write a program that has an double array intArray[] that has .pdf
 
Q1 - Medical Diagnostic Database [30 points] You are given a file con.pdf
 Q1 - Medical Diagnostic Database [30 points] You are given a file con.pdf Q1 - Medical Diagnostic Database [30 points] You are given a file con.pdf
Q1 - Medical Diagnostic Database [30 points] You are given a file con.pdf
 
Q.6 Let (X1,X2X3�,Xn)N(,1) and let prior distribution of be N(0,1).pdf
 Q.6 Let (X1,X2X3�,Xn)N(,1) and let prior distribution of  be N(0,1).pdf Q.6 Let (X1,X2X3�,Xn)N(,1) and let prior distribution of  be N(0,1).pdf
Q.6 Let (X1,X2X3�,Xn)N(,1) and let prior distribution of be N(0,1).pdf
 
Q.3 L& A Infrastructure Ltd (L&A), a listed company seeks to acqu.pdf
 Q.3 L& A Infrastructure Ltd (L&A), a listed company seeks to acqu.pdf Q.3 L& A Infrastructure Ltd (L&A), a listed company seeks to acqu.pdf
Q.3 L& A Infrastructure Ltd (L&A), a listed company seeks to acqu.pdf
 
Q. You have instance variable as name, age, id. And you have two memb.pdf
 Q. You have instance variable as name, age, id. And you have two memb.pdf Q. You have instance variable as name, age, id. And you have two memb.pdf
Q. You have instance variable as name, age, id. And you have two memb.pdf
 
Q Presented below is information related to ABC Company. [[ A. Pre.pdf
 Q Presented below is information related to ABC Company. [[ A. Pre.pdf Q Presented below is information related to ABC Company. [[ A. Pre.pdf
Q Presented below is information related to ABC Company. [[ A. Pre.pdf
 
Q.2 Allegro Company has gathered the following information. Require.pdf
 Q.2 Allegro Company has gathered the following information.  Require.pdf Q.2 Allegro Company has gathered the following information.  Require.pdf
Q.2 Allegro Company has gathered the following information. Require.pdf
 
public class weird { public static void main(String[] args){ int nu.pdf
 public class weird { public static void main(String[] args){ int nu.pdf public class weird { public static void main(String[] args){ int nu.pdf
public class weird { public static void main(String[] args){ int nu.pdf
 

Recently uploaded

Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 

Recently uploaded (20)

Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 

Q1a. Is it mandatory for all functions to have a return statement Q1.pdf

  • 1. Q1a. Is it mandatory for all functions to have a return statement? Q1b. If you do not specify a return statement in a function, what is returned by the function at the end of its execution flow? Q1c. Explain why the values of the variables a and b (as printed at the end of the execution) are 2 and 40 respectively. def doSomething (a):b=5c=ba return c def doSomethingToo (): global a global bb=baa=2b=10b+= doSomething(a) doSomethingToo() print (f"a={a}nb={b})