Question: rows = 4 replay = while rows > 0 : if rows % 4 = = 0 : replay + = *

rows =4
replay =""
while rows >0:
if rows %4==0:
replay +="*"
elif rows %3!=0:
replay +="$"
elif Rows %2==0:
replay +="@"
else:
replay +="&"
rows -=1 print(replay)

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!