Question: Python i want the code to return * ** ***. how to fix this code 5 def pattern(n): 6 for x in range(1,n+1): 7 stars=**

 Python i want the code to return * ** ***. howPython i want the code to return * ** ***. how to fix this code

5 def pattern(n): 6 for x in range(1,n+1): 7 stars="*"* + " " 8 return stars thome/pa5_loops.py 8:17 Spaces: 4 (Auto) Terminal [user@sahara -]python - pa5_loops.py >>> pattern(3) **

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!