Answered step by step
Verified Expert Solution
Question
1 Approved Answer
height = int ( input ( ) ) # Read the width of the rectangle from the user width = int ( input ( )
height intinput
# Read the width of the rectangle from the user
width intinput
# Loop through each row i from to height
for i in range height:
# Loop through each column j from to width
for j in range width:
# Print an asterisk for each column without moving to the next line
print end
# Move to the next line after printing all columns for the current row
print
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