SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
Define stubs for the functions get_user_nurn 0 and compute_avg0. Each stub should print 'FIXME:
Finish function_name0' followed by a newline, and should return -1. Each stub must also contain
the function's parameters. Sample output with two calls to get_user num0 and one call to compute
avg0: FIXME: Finish get_user_num() FIXME: Finish get_user_num() FIXME: Finish
compute_avg() Avg: -1 Code writing chatlenge activity demo 1 2 3 4 user_num1 =0 5 user_num2
=0 6 avg_result =0 7 8 user_num1 = get_user_num() 9 user_num2 = get_user_num( ) 10
avg_result = compute_avg(user_num1, user_num2) 11 12 print(f'Avg: {avg_result } ')

Mais conteúdo relacionado

Mais de motilajain

Demonstrate the effect of the following shocks in the basic .pdf
Demonstrate the effect of the following shocks in the basic .pdfDemonstrate the effect of the following shocks in the basic .pdf
Demonstrate the effect of the following shocks in the basic .pdfmotilajain
 
Define blood pHDescribe how blood buffer systems contribute.pdf
Define blood pHDescribe how blood buffer systems contribute.pdfDefine blood pHDescribe how blood buffer systems contribute.pdf
Define blood pHDescribe how blood buffer systems contribute.pdfmotilajain
 
Define and give an example of Statistical method a m.pdf
Define and give an example of Statistical method       a m.pdfDefine and give an example of Statistical method       a m.pdf
Define and give an example of Statistical method a m.pdfmotilajain
 
Define health informatics the key players involved and the.pdf
Define health informatics the key players involved and the.pdfDefine health informatics the key players involved and the.pdf
Define health informatics the key players involved and the.pdfmotilajain
 
Define the following phenomena as acclimatization or adaptat.pdf
Define the following phenomena as acclimatization or adaptat.pdfDefine the following phenomena as acclimatization or adaptat.pdf
Define the following phenomena as acclimatization or adaptat.pdfmotilajain
 
Define a function called helloWorldn that accepts a number.pdf
Define a function called helloWorldn that accepts a number.pdfDefine a function called helloWorldn that accepts a number.pdf
Define a function called helloWorldn that accepts a number.pdfmotilajain
 
Define the exposome a Provide examples of the three broad .pdf
Define the exposome a Provide examples of the three broad .pdfDefine the exposome a Provide examples of the three broad .pdf
Define the exposome a Provide examples of the three broad .pdfmotilajain
 
Define a method printStateInfo that takes two string param.pdf
Define a method printStateInfo that takes two string param.pdfDefine a method printStateInfo that takes two string param.pdf
Define a method printStateInfo that takes two string param.pdfmotilajain
 
DEF Ltd has the following alternative planned activity level.pdf
DEF Ltd has the following alternative planned activity level.pdfDEF Ltd has the following alternative planned activity level.pdf
DEF Ltd has the following alternative planned activity level.pdfmotilajain
 
def FindNumDigitsnumber return lenstrabsnumber def .pdf
def FindNumDigitsnumber return lenstrabsnumber def .pdfdef FindNumDigitsnumber return lenstrabsnumber def .pdf
def FindNumDigitsnumber return lenstrabsnumber def .pdfmotilajain
 
Deere amp Company is a global manufacturer and distributor.pdf
Deere amp Company is a global manufacturer and distributor.pdfDeere amp Company is a global manufacturer and distributor.pdf
Deere amp Company is a global manufacturer and distributor.pdfmotilajain
 
Decisions for Tomorrow How much more output per year will ha.pdf
Decisions for Tomorrow How much more output per year will ha.pdfDecisions for Tomorrow How much more output per year will ha.pdf
Decisions for Tomorrow How much more output per year will ha.pdfmotilajain
 
Declining populations of honeybees and bumblebees is a major.pdf
Declining populations of honeybees and bumblebees is a major.pdfDeclining populations of honeybees and bumblebees is a major.pdf
Declining populations of honeybees and bumblebees is a major.pdfmotilajain
 
Decomposing a system into subsystems reduces the complexity .pdf
Decomposing a system into subsystems reduces the complexity .pdfDecomposing a system into subsystems reduces the complexity .pdf
Decomposing a system into subsystems reduces the complexity .pdfmotilajain
 
Decreases in the following factors that will increase the d.pdf
Decreases in the following factors that will  increase the d.pdfDecreases in the following factors that will  increase the d.pdf
Decreases in the following factors that will increase the d.pdfmotilajain
 
Deciduous forest is clarified by moderate precipitation hot.pdf
Deciduous forest is clarified by moderate precipitation hot.pdfDeciduous forest is clarified by moderate precipitation hot.pdf
Deciduous forest is clarified by moderate precipitation hot.pdfmotilajain
 
Death process 359 Consider a pure death process In suc.pdf
Death process   359 Consider a pure death process In suc.pdfDeath process   359 Consider a pure death process In suc.pdf
Death process 359 Consider a pure death process In suc.pdfmotilajain
 
Debe pasar por la investigacin contextual y la respuesta ad.pdf
Debe pasar por la investigacin contextual y la respuesta ad.pdfDebe pasar por la investigacin contextual y la respuesta ad.pdf
Debe pasar por la investigacin contextual y la respuesta ad.pdfmotilajain
 
Data for Hughs Corporation is provided below Hughs recent.pdf
Data for Hughs Corporation is provided below Hughs recent.pdfData for Hughs Corporation is provided below Hughs recent.pdf
Data for Hughs Corporation is provided below Hughs recent.pdfmotilajain
 
De las siguientes cul NO es una opcin que las empresas d.pdf
De las siguientes cul NO es una opcin que las empresas d.pdfDe las siguientes cul NO es una opcin que las empresas d.pdf
De las siguientes cul NO es una opcin que las empresas d.pdfmotilajain
 

Mais de motilajain (20)

Demonstrate the effect of the following shocks in the basic .pdf
Demonstrate the effect of the following shocks in the basic .pdfDemonstrate the effect of the following shocks in the basic .pdf
Demonstrate the effect of the following shocks in the basic .pdf
 
Define blood pHDescribe how blood buffer systems contribute.pdf
Define blood pHDescribe how blood buffer systems contribute.pdfDefine blood pHDescribe how blood buffer systems contribute.pdf
Define blood pHDescribe how blood buffer systems contribute.pdf
 
Define and give an example of Statistical method a m.pdf
Define and give an example of Statistical method       a m.pdfDefine and give an example of Statistical method       a m.pdf
Define and give an example of Statistical method a m.pdf
 
Define health informatics the key players involved and the.pdf
Define health informatics the key players involved and the.pdfDefine health informatics the key players involved and the.pdf
Define health informatics the key players involved and the.pdf
 
Define the following phenomena as acclimatization or adaptat.pdf
Define the following phenomena as acclimatization or adaptat.pdfDefine the following phenomena as acclimatization or adaptat.pdf
Define the following phenomena as acclimatization or adaptat.pdf
 
Define a function called helloWorldn that accepts a number.pdf
Define a function called helloWorldn that accepts a number.pdfDefine a function called helloWorldn that accepts a number.pdf
Define a function called helloWorldn that accepts a number.pdf
 
Define the exposome a Provide examples of the three broad .pdf
Define the exposome a Provide examples of the three broad .pdfDefine the exposome a Provide examples of the three broad .pdf
Define the exposome a Provide examples of the three broad .pdf
 
Define a method printStateInfo that takes two string param.pdf
Define a method printStateInfo that takes two string param.pdfDefine a method printStateInfo that takes two string param.pdf
Define a method printStateInfo that takes two string param.pdf
 
DEF Ltd has the following alternative planned activity level.pdf
DEF Ltd has the following alternative planned activity level.pdfDEF Ltd has the following alternative planned activity level.pdf
DEF Ltd has the following alternative planned activity level.pdf
 
def FindNumDigitsnumber return lenstrabsnumber def .pdf
def FindNumDigitsnumber return lenstrabsnumber def .pdfdef FindNumDigitsnumber return lenstrabsnumber def .pdf
def FindNumDigitsnumber return lenstrabsnumber def .pdf
 
Deere amp Company is a global manufacturer and distributor.pdf
Deere amp Company is a global manufacturer and distributor.pdfDeere amp Company is a global manufacturer and distributor.pdf
Deere amp Company is a global manufacturer and distributor.pdf
 
Decisions for Tomorrow How much more output per year will ha.pdf
Decisions for Tomorrow How much more output per year will ha.pdfDecisions for Tomorrow How much more output per year will ha.pdf
Decisions for Tomorrow How much more output per year will ha.pdf
 
Declining populations of honeybees and bumblebees is a major.pdf
Declining populations of honeybees and bumblebees is a major.pdfDeclining populations of honeybees and bumblebees is a major.pdf
Declining populations of honeybees and bumblebees is a major.pdf
 
Decomposing a system into subsystems reduces the complexity .pdf
Decomposing a system into subsystems reduces the complexity .pdfDecomposing a system into subsystems reduces the complexity .pdf
Decomposing a system into subsystems reduces the complexity .pdf
 
Decreases in the following factors that will increase the d.pdf
Decreases in the following factors that will  increase the d.pdfDecreases in the following factors that will  increase the d.pdf
Decreases in the following factors that will increase the d.pdf
 
Deciduous forest is clarified by moderate precipitation hot.pdf
Deciduous forest is clarified by moderate precipitation hot.pdfDeciduous forest is clarified by moderate precipitation hot.pdf
Deciduous forest is clarified by moderate precipitation hot.pdf
 
Death process 359 Consider a pure death process In suc.pdf
Death process   359 Consider a pure death process In suc.pdfDeath process   359 Consider a pure death process In suc.pdf
Death process 359 Consider a pure death process In suc.pdf
 
Debe pasar por la investigacin contextual y la respuesta ad.pdf
Debe pasar por la investigacin contextual y la respuesta ad.pdfDebe pasar por la investigacin contextual y la respuesta ad.pdf
Debe pasar por la investigacin contextual y la respuesta ad.pdf
 
Data for Hughs Corporation is provided below Hughs recent.pdf
Data for Hughs Corporation is provided below Hughs recent.pdfData for Hughs Corporation is provided below Hughs recent.pdf
Data for Hughs Corporation is provided below Hughs recent.pdf
 
De las siguientes cul NO es una opcin que las empresas d.pdf
De las siguientes cul NO es una opcin que las empresas d.pdfDe las siguientes cul NO es una opcin que las empresas d.pdf
De las siguientes cul NO es una opcin que las empresas d.pdf
 

Último

Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 

Último (20)

Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 

Define stubs for the functions get_user_nurn 0 and compute_a.pdf

  • 1. Define stubs for the functions get_user_nurn 0 and compute_avg0. Each stub should print 'FIXME: Finish function_name0' followed by a newline, and should return -1. Each stub must also contain the function's parameters. Sample output with two calls to get_user num0 and one call to compute avg0: FIXME: Finish get_user_num() FIXME: Finish get_user_num() FIXME: Finish compute_avg() Avg: -1 Code writing chatlenge activity demo 1 2 3 4 user_num1 =0 5 user_num2 =0 6 avg_result =0 7 8 user_num1 = get_user_num() 9 user_num2 = get_user_num( ) 10 avg_result = compute_avg(user_num1, user_num2) 11 12 print(f'Avg: {avg_result } ')