Question: 6.) Using what you learned in the previous question, write a function called text_triangle that takes an integer parameter and prints X's in a triangle

 6.) Using what you learned in the previous question, write a

6.) Using what you learned in the previous question, write a function called text_triangle that takes an integer parameter and prints X's in a triangle shape. arguments. (The code exe in blue, the output produced is in green): text_triangle (3) xXX text_triangle (10) text triangle (0) There should be no spaces in front of each X. The last one is the tricky one! If the argument is 0, print one blank line. Make sure you print the correct amount of X's

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!