Question
This is for Python: Asks for an odd number between 7 and 15 (both inclusive) Validates that number is an odd number between 7 and
This is for Python:
Asks for an odd number between 7 and 15 (both inclusive) Validates that number is an odd number between 7 and 15 (both inclusive) See the first sample run to see validation. Prints two patterns based on the given number. Pattern 1: A Christmas tree with width equal to the given number and a stem of constant height of 4 . See sample runs below for size = 9 and size = 13. Pattern 2: A pattern with mirror image made up of letter "A" (See sample runs below). Hint: Split the figure in top-half and bottom-half parts, drawing them with two different for-loops. Look at each pattern closely and come up with a formula for the number of 'A's and number of spaces required on each row in the pattern. I can do the triangle patterns separately. However, I can not figure out how to put two triangles on the same line.
number-1 while (number 15): print ("Your value must be less than 7 and greater than 15"' for i in range (0,number) for j in range (0,i +1): print("*",end-" rows - while (iStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started