Online Courses
Free Tutorials  Go to Your University  Placement Preparation 
Goeduhub's Online Courses @ Udemy in Just INR 570/-
Online Training - Youtube Live Class Link
0 like 0 dislike
139 views
in Python Programming by Goeduhub's Expert (8.3k points)

1     *                       2   333

           ***                          313

          *****                        323

        *******                      333

       ******* 

        *****  

        ***   

         *  

Goeduhub's Top Online Courses @Udemy

For Indian Students- INR 360/- || For International Students- $9.99/-

S.No.

Course Name

 Coupon

1.

Tensorflow 2 & Keras:Deep Learning & Artificial Intelligence

Apply Coupon

2.

Natural Language Processing-NLP with Deep Learning in Python Apply Coupon

3.

Computer Vision OpenCV Python | YOLO| Deep Learning in Colab Apply Coupon
    More Courses

1 Answer

0 like 0 dislike
by Goeduhub's Expert (8.3k points)
 
Best answer

Sol. 1.

for i in range(8):

    for j in range(7):

        if i==3 or (i==2 and j!=0 and j!=6) or (i==1 and j>=2and j<=4) or (i==0 and j==3):

            print("*",end='')

        elif i==4 or (i==5 and j!=0 and j!=6) or (i==6 and j>=2and j<=4) or (i==7 and j==3):

            print("*",end='')

        else:

            print(" ",end='')

    print(" ")


2.

for i in range(4):

    for j in range(3):

        if i==0 or i==3 or j==0 or j==2:

            print("3",end='')

        else:

            print(i,end='')

    print("")

3.3k questions

7.1k answers

394 comments

4.6k users

 Goeduhub:

About Us | Contact Us || Terms & Conditions | Privacy Policy || Youtube Channel || Telegram Channel © goeduhub.com Social::   |  | 
...