Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(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 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
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