Question: Use Python 3 or above Write a function named q50 that accepts an Int value n as input, and prints n lines of asterisks where

 Use Python 3 or above Write a function named q50 that

Use Python 3 or above

Write a function named q50 that accepts an Int value n as input, and prints n lines of asterisks where the first line has n asterisks and each successive line has 2 fewer asterisks until it prints a line with only 1 asterisk. At that point, the q50 function begins increasing each line of asterisks by 2 until it returns back to n asterisks. The completed output must be formatted and aligned to appear in the shape of an hourglass (see the examples below Rules and Guidelines: Indentation and alignment is a requirement-no credit will be awarded otherwise. .The q50 function should not print if the parameter n is not a positive, odd integer. A correct display is important, but more points are possible if you can achieve the correct output with shorter code (ie: fewer statements). NOTE: You may only use the functions, commands and techniques that we have covered so far this semester and are included in the Zelle textbook (ch's 1-8) Example Output

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!