Question: Implement the following functions. For this problem, you are not allowed to use string multiplication. So, statements such as print(symbol * i) or my_string =

Implement the following functions. For this problem, you are not allowed toImplement the following functions. For this problem, you are not allowed to use string multiplication. So, statements such as print(symbol * i) or my_string = symbol * i are NOT allowed. Both Problems please. This is Python3 using visual studio code.

(c) Write a function printUpTriangle() that takes two parameters, width (int) and symbol (string), and prints a right side up triangle using symbol on the screen width is a number that determines the width of the base of the triangle. For example printUpTriangle(3,"T") should produce the following: T TT ITT (d) Write a function printDown Triangle() that takes two parameters, width (int) and symbol (string), and prints an upside down triangle using symbol on the screen. width is a number that determines the width of the base of the triangle. For example printDownTriangle(5,"#") should produce the following: ##### #### ### ## # HINT: You can use a negative increment with the range functions (e.g. range (10,0,-1))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!