Question: (b) Write a Python program to display integers from 20 to 2 by using while loop. The difference between each number is 2 (Remark: follow

 (b) Write a Python program to display integers from 20 to

(b) Write a Python program to display integers from 20 to 2 by using while loop. The difference between each number is 2 (Remark: follow the format and symbol of sample program output below). [4 marks] (c) Write a Python program to prompt user to: input number of row(s) (store in a variable named: rows). input number of column(s) (store in a variable named: columns). finally display rectangular pattern (print by pound symbol (\#)) on the screen by using nested for loops statement. (See sample program output below) (Use range () to manipulate values from the variables rows and columns in the nested for loops). [6 marks]

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!