Ask for input of two positive integers a and b. Keep asking for inputs until all conditions below are satisfied: b should be greater than 0 a should be greater than 0 b should be greater than a (b-a)...


Hello need another expert's advice on how to program this one using
Python 3. (see image)


Ask for input of two positive integers a and b. Keep asking for inputs until all conditions below are satisfied:<br>b should be greater than 0<br>a should be greater than 0<br>b should be greater than a<br>(b-a) should be an even number<br>Print an isosceles triangle of asterisks (*) with height equal to b. Inside the big isosceles triangle of<br>height b, there should be a smaller isosceles triangle with height a<br>The smaller triangle should be located at the center of the bigger triangle. The smaller triangle should be made of the

Extracted text: Ask for input of two positive integers a and b. Keep asking for inputs until all conditions below are satisfied: b should be greater than 0 a should be greater than 0 b should be greater than a (b-a) should be an even number Print an isosceles triangle of asterisks (*) with height equal to b. Inside the big isosceles triangle of height b, there should be a smaller isosceles triangle with height a The smaller triangle should be located at the center of the bigger triangle. The smaller triangle should be made of the "a" SAMPLE OUTPUT #1 SAMPLE OUTPUT #2 Enter b: Enter a: Enter b: Enter a: Invalid input. Enter b: Enter a: オ★★ ***** *a* ***a*** *aaa* ***aaa*** ***aaaaa*** ***aaaaaаа*** ******** SAMPLE INPUT #2 r**************** SAMPLE INPUT #1 4 2 10 4

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here