SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
3. Write and test the following function: 1 def open_triangle_print(rows): Add the function to a
PyDev module named functions.py. Test it from t03.py. open_triangle takes an integer parameter
and prints a triangle of # characters with an empty center. Provide the function docstring
(documentation) following the CP104 style. The function must use a loop. The function does not
ask for input. Sample execution: open_triangle_print (3) in# i# # i # Test the function with three
different sets of parameters.

Contenu connexe

Plus de VANDANASINHACONSULT

4 4 pts In what major sedimentary depositional environmen.pdf
4 4 pts In what major sedimentary depositional environmen.pdf4 4 pts In what major sedimentary depositional environmen.pdf
4 4 pts In what major sedimentary depositional environmen.pdfVANDANASINHACONSULT
 
4 10 pts You have mutated normal epidermal fibroblast cel.pdf
4 10 pts You have mutated normal epidermal fibroblast cel.pdf4 10 pts You have mutated normal epidermal fibroblast cel.pdf
4 10 pts You have mutated normal epidermal fibroblast cel.pdfVANDANASINHACONSULT
 
4 12 points An FA illustrating a simplified version of le.pdf
4 12 points An FA illustrating a simplified version of le.pdf4 12 points An FA illustrating a simplified version of le.pdf
4 12 points An FA illustrating a simplified version of le.pdfVANDANASINHACONSULT
 
4 20 pt Simple linear regression is considered in a data .pdf
4 20 pt Simple linear regression is considered in a data .pdf4 20 pt Simple linear regression is considered in a data .pdf
4 20 pt Simple linear regression is considered in a data .pdfVANDANASINHACONSULT
 
4 2 pts Consider the ER schema for the MOVIES database as.pdf
4 2 pts Consider the ER schema for the MOVIES database as.pdf4 2 pts Consider the ER schema for the MOVIES database as.pdf
4 2 pts Consider the ER schema for the MOVIES database as.pdfVANDANASINHACONSULT
 
4 10 Percent Ryan Enterprises forecasts the free cash flo.pdf
4 10 Percent Ryan Enterprises forecasts the free cash flo.pdf4 10 Percent Ryan Enterprises forecasts the free cash flo.pdf
4 10 Percent Ryan Enterprises forecasts the free cash flo.pdfVANDANASINHACONSULT
 
3Use Tukeys multiple comparison method to decide among whi.pdf
3Use Tukeys multiple comparison method to decide among whi.pdf3Use Tukeys multiple comparison method to decide among whi.pdf
3Use Tukeys multiple comparison method to decide among whi.pdfVANDANASINHACONSULT
 
329 In the last decade the average age of a mother at chil.pdf
329 In the last decade the average age of a mother at chil.pdf329 In the last decade the average age of a mother at chil.pdf
329 In the last decade the average age of a mother at chil.pdfVANDANASINHACONSULT
 
36 In 1812 an earthquake centered on the San Andreas fault.pdf
36 In 1812 an earthquake centered on the San Andreas fault.pdf36 In 1812 an earthquake centered on the San Andreas fault.pdf
36 In 1812 an earthquake centered on the San Andreas fault.pdfVANDANASINHACONSULT
 
36 Most of the catbon dioxide earried inthe blood is transp.pdf
36 Most of the catbon dioxide earried inthe blood is transp.pdf36 Most of the catbon dioxide earried inthe blood is transp.pdf
36 Most of the catbon dioxide earried inthe blood is transp.pdfVANDANASINHACONSULT
 
36 The kidneys maintain blood fluid volume through the neph.pdf
36 The kidneys maintain blood fluid volume through the neph.pdf36 The kidneys maintain blood fluid volume through the neph.pdf
36 The kidneys maintain blood fluid volume through the neph.pdfVANDANASINHACONSULT
 
319 Let the random variable X have the pdf fx 21x0x.pdf
319 Let the random variable X have the pdf fx 21x0x.pdf319 Let the random variable X have the pdf fx 21x0x.pdf
319 Let the random variable X have the pdf fx 21x0x.pdfVANDANASINHACONSULT
 
35 A 67yearold woman is admitted to the hospital with sev.pdf
35 A 67yearold woman is admitted to the hospital with sev.pdf35 A 67yearold woman is admitted to the hospital with sev.pdf
35 A 67yearold woman is admitted to the hospital with sev.pdfVANDANASINHACONSULT
 
34 Why are teloyears DNA test not an accurate way to predi.pdf
34 Why are teloyears DNA test not an accurate way to predi.pdf34 Why are teloyears DNA test not an accurate way to predi.pdf
34 Why are teloyears DNA test not an accurate way to predi.pdfVANDANASINHACONSULT
 
32 Bowenn kamu mallar taleplerini temsil eden modeli A .pdf
32 Bowenn kamu mallar taleplerini temsil eden modeli  A .pdf32 Bowenn kamu mallar taleplerini temsil eden modeli  A .pdf
32 Bowenn kamu mallar taleplerini temsil eden modeli A .pdfVANDANASINHACONSULT
 
34 A 42yearold woman is admitted to the hospital due to b.pdf
34 A 42yearold woman is admitted to the hospital due to b.pdf34 A 42yearold woman is admitted to the hospital due to b.pdf
34 A 42yearold woman is admitted to the hospital due to b.pdfVANDANASINHACONSULT
 
35 In Human Resources and Job Design Labor Standards a wo.pdf
35   In Human Resources and Job Design Labor Standards a wo.pdf35   In Human Resources and Job Design Labor Standards a wo.pdf
35 In Human Resources and Job Design Labor Standards a wo.pdfVANDANASINHACONSULT
 
334 LAB Output range with increment of 5 Write a program w.pdf
334 LAB Output range with increment of 5 Write a program w.pdf334 LAB Output range with increment of 5 Write a program w.pdf
334 LAB Output range with increment of 5 Write a program w.pdfVANDANASINHACONSULT
 
31 You are given a list L and another list P containing.pdf
31 You are given a list L and another list P containing.pdf31 You are given a list L and another list P containing.pdf
31 You are given a list L and another list P containing.pdfVANDANASINHACONSULT
 
35 of all college students major in STEM Science Technolo.pdf
35 of all college students major in STEM Science Technolo.pdf35 of all college students major in STEM Science Technolo.pdf
35 of all college students major in STEM Science Technolo.pdfVANDANASINHACONSULT
 

Plus de VANDANASINHACONSULT (20)

4 4 pts In what major sedimentary depositional environmen.pdf
4 4 pts In what major sedimentary depositional environmen.pdf4 4 pts In what major sedimentary depositional environmen.pdf
4 4 pts In what major sedimentary depositional environmen.pdf
 
4 10 pts You have mutated normal epidermal fibroblast cel.pdf
4 10 pts You have mutated normal epidermal fibroblast cel.pdf4 10 pts You have mutated normal epidermal fibroblast cel.pdf
4 10 pts You have mutated normal epidermal fibroblast cel.pdf
 
4 12 points An FA illustrating a simplified version of le.pdf
4 12 points An FA illustrating a simplified version of le.pdf4 12 points An FA illustrating a simplified version of le.pdf
4 12 points An FA illustrating a simplified version of le.pdf
 
4 20 pt Simple linear regression is considered in a data .pdf
4 20 pt Simple linear regression is considered in a data .pdf4 20 pt Simple linear regression is considered in a data .pdf
4 20 pt Simple linear regression is considered in a data .pdf
 
4 2 pts Consider the ER schema for the MOVIES database as.pdf
4 2 pts Consider the ER schema for the MOVIES database as.pdf4 2 pts Consider the ER schema for the MOVIES database as.pdf
4 2 pts Consider the ER schema for the MOVIES database as.pdf
 
4 10 Percent Ryan Enterprises forecasts the free cash flo.pdf
4 10 Percent Ryan Enterprises forecasts the free cash flo.pdf4 10 Percent Ryan Enterprises forecasts the free cash flo.pdf
4 10 Percent Ryan Enterprises forecasts the free cash flo.pdf
 
3Use Tukeys multiple comparison method to decide among whi.pdf
3Use Tukeys multiple comparison method to decide among whi.pdf3Use Tukeys multiple comparison method to decide among whi.pdf
3Use Tukeys multiple comparison method to decide among whi.pdf
 
329 In the last decade the average age of a mother at chil.pdf
329 In the last decade the average age of a mother at chil.pdf329 In the last decade the average age of a mother at chil.pdf
329 In the last decade the average age of a mother at chil.pdf
 
36 In 1812 an earthquake centered on the San Andreas fault.pdf
36 In 1812 an earthquake centered on the San Andreas fault.pdf36 In 1812 an earthquake centered on the San Andreas fault.pdf
36 In 1812 an earthquake centered on the San Andreas fault.pdf
 
36 Most of the catbon dioxide earried inthe blood is transp.pdf
36 Most of the catbon dioxide earried inthe blood is transp.pdf36 Most of the catbon dioxide earried inthe blood is transp.pdf
36 Most of the catbon dioxide earried inthe blood is transp.pdf
 
36 The kidneys maintain blood fluid volume through the neph.pdf
36 The kidneys maintain blood fluid volume through the neph.pdf36 The kidneys maintain blood fluid volume through the neph.pdf
36 The kidneys maintain blood fluid volume through the neph.pdf
 
319 Let the random variable X have the pdf fx 21x0x.pdf
319 Let the random variable X have the pdf fx 21x0x.pdf319 Let the random variable X have the pdf fx 21x0x.pdf
319 Let the random variable X have the pdf fx 21x0x.pdf
 
35 A 67yearold woman is admitted to the hospital with sev.pdf
35 A 67yearold woman is admitted to the hospital with sev.pdf35 A 67yearold woman is admitted to the hospital with sev.pdf
35 A 67yearold woman is admitted to the hospital with sev.pdf
 
34 Why are teloyears DNA test not an accurate way to predi.pdf
34 Why are teloyears DNA test not an accurate way to predi.pdf34 Why are teloyears DNA test not an accurate way to predi.pdf
34 Why are teloyears DNA test not an accurate way to predi.pdf
 
32 Bowenn kamu mallar taleplerini temsil eden modeli A .pdf
32 Bowenn kamu mallar taleplerini temsil eden modeli  A .pdf32 Bowenn kamu mallar taleplerini temsil eden modeli  A .pdf
32 Bowenn kamu mallar taleplerini temsil eden modeli A .pdf
 
34 A 42yearold woman is admitted to the hospital due to b.pdf
34 A 42yearold woman is admitted to the hospital due to b.pdf34 A 42yearold woman is admitted to the hospital due to b.pdf
34 A 42yearold woman is admitted to the hospital due to b.pdf
 
35 In Human Resources and Job Design Labor Standards a wo.pdf
35   In Human Resources and Job Design Labor Standards a wo.pdf35   In Human Resources and Job Design Labor Standards a wo.pdf
35 In Human Resources and Job Design Labor Standards a wo.pdf
 
334 LAB Output range with increment of 5 Write a program w.pdf
334 LAB Output range with increment of 5 Write a program w.pdf334 LAB Output range with increment of 5 Write a program w.pdf
334 LAB Output range with increment of 5 Write a program w.pdf
 
31 You are given a list L and another list P containing.pdf
31 You are given a list L and another list P containing.pdf31 You are given a list L and another list P containing.pdf
31 You are given a list L and another list P containing.pdf
 
35 of all college students major in STEM Science Technolo.pdf
35 of all college students major in STEM Science Technolo.pdf35 of all college students major in STEM Science Technolo.pdf
35 of all college students major in STEM Science Technolo.pdf
 

Dernier

4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6Vanessa Camilleri
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD  GAS ANALYSIS........pptxARTERIAL BLOOD  GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptxAneriPatwari
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Celine George
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptxmary850239
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvRicaMaeCastro1
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17Celine George
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 

Dernier (20)

4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD  GAS ANALYSIS........pptxARTERIAL BLOOD  GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 

3 Write and test the following function 1 def open_triangl.pdf

  • 1. 3. Write and test the following function: 1 def open_triangle_print(rows): Add the function to a PyDev module named functions.py. Test it from t03.py. open_triangle takes an integer parameter and prints a triangle of # characters with an empty center. Provide the function docstring (documentation) following the CP104 style. The function must use a loop. The function does not ask for input. Sample execution: open_triangle_print (3) in# i# # i # Test the function with three different sets of parameters.