Question: use while loop please Create a Python function called printHashtagsthat expects one argument, a non-negative integer, and printsa row of hashtags, where the number of

use while loop please

Create a Python function called printHashtagsthat expects one argument, a non-negative integer, and printsa row of hashtags, where the number of hashtagsis 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)

####

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!