How to print pattern in Python?


Warning: Trying to access array offset on false in /home3/indiakep/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 8
All QuestionsCategory: PythonHow to print pattern in Python?
Chetan Shidling asked 6 years ago

Like this
 
#  #  #  #
#  #  #  #
#  #  #  #
#  #  #  #

1 Answers
chetan shidling answered 6 years ago

By using this code you can print.
 
for I in range(4):
      for j in range(4):
            print(“#  “,end=” “)
      print()