Skip to content
  • Home
  • Blogs
  • QNA
    • Community
    • Ask
    • Questions
  • Explore
    • Tools
    • Computer Science
    • Electrical
    • Electronics
    • Digital Marketing
    • Technology
    • Hiring Process
    • Interview Questions
    • Roadmap
    • Comparison
    • What Is
    • Project
    • Top Things
    • TechNews
  • News?
  • Login
newlogo of cs Electrical And Elect
  • Home
  • Blogs
  • QNA
    • Community
    • Ask
    • Questions
  • Explore
    • Tools
    • Computer Science
    • Electrical
    • Electronics
    • Digital Marketing
    • Technology
    • Hiring Process
    • Interview Questions
    • Roadmap
    • Comparison
    • What Is
    • Project
    • Top Things
    • TechNews
  • News?
  • Login

How to print pattern in Python?

All Questions › Category: Python › How to print pattern in Python?
0 Vote Up Vote Down
Chetan Shidling asked 5 years ago

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

1 Answers
0 Vote Up Vote Down
chetan shidling answered 5 years ago

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

Proudly powered by WordPress | RealEstate Pack Lite by Wp Theme Space.

WhatsApp us