Question: Write a Python program that receives two numbers from a user: num1 and num2. You program checks which is the bigger number. If the

Write a Python program that receives two numbers from a user: num1 and num2. You program checks which is the 

Write a Python program that receives two numbers from a user: num1 and num2. You program checks which is the bigger number. If the bigger number is odd, then in prints the same number in different lines. On each line you print the odd number you then add'-' sign characters for as many as the smaller number. For example, if the larger number entered is odd and it is 5 and the smaller number is 3 then the output should be: 5-.. 5- 5 --- 5 --- 5 --- I However, if the larger number is even then print '+'sign characters for as many as the smaller number then in the end of the line print the even number. Repeat the printing for as many lines as the larger even number. For example, if the larger number entered is even and it is 4 and the smaller number is 2 then the output should be: ++4 ++4 ++4 ++4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python program python def printpatternnum1 num2 largernumber ... View full answer

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 Operating System Questions!