Question: Create a Python function called printHashtags that expects one argument, a non-negative integer, and prints a row of hashtags, where the number of hashtags is
Create a Python function called printHashtags that expects one argument, a non-negative integer, and prints a row of hashtags, where the number of hashtags is given by the value passed as the argument. Control the printing with a while loop, not with a construct that looks like print("#" * n). This function does not return any value. Here are some examples of how your function should behave: > > > printHashtags (1) # > > > printHashtags (2) ## printHashtags (3) ### > > > printHashtags (4) #### > > > printHashtags(0) > > > Create a Python-function called printTriangle that expects one argument, a non-negative integer, and prints a right triangle, where both the height of the triangle and the width of the widest part of the triangle are given by the value passed as the argument. This function does not return any value. Your function should use your solution to Problem 3 in printing the triangle. Here are some examples of how your function should behave: > > > printTriangle (4) #### ### ## # > > > printTriangle (3) ### ## # > > > printTriangle (2)
Step by Step Solution
There are 3 Steps involved in it
To solve these problems you need to create two functions printHashtags and printTriangle Heres how y... View full answer
Get step-by-step solutions from verified subject matter experts
