Answer to Question #278813 in Python for saivarun

Question #278813

striped Rectangle...input (m = 5) (n =7)

+++++++

- - - - - - -

+++++++

- - - - - - -

+++++++


1
Expert's answer
2021-12-13T04:25:42-0500
m = int(input())
n = int(input())
text = '+'*n
text1 = '-'*n
for i in range(m):
  if i%2==0:
    print(text)
  else:
    print(text1)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS