Question: python programming Given a number write a program to print the given shape in rows using stars There is a space after every star ().
python programming




Given a number write a program to print the given shape in rows using stars There is a space after every star (). Input The input will be a single line containing an integer representing Output The output should be nows containing stars ( ) as shown in the sample output. Explanation For example, if the given number is N=4, - Print the stars ( ) on 7 rows (241) as shown in the given image. In the given image, - The Empty box indicates two spaces (" "). - The Star in the box indicates the star and a space ("* ") The output should be, Sample Output 1 Sample Input 2 Sample Output 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
