Summer training at Goeduhub Technologies-Jaipur
Online FREE Certified Workshop on Python Programming:: Active now ||  Career options for aspiring CS/ITECEEE or EIC or EEE Engineers
0 like 0 dislike
25 views
in Examples, Exercises and Projects by Goeduhub's Expert (6.9k points)
*

* *

* * *

* * * *

* * * * *

* * * *

* * *

* *

*

1 Answer

0 like 0 dislike
by Goeduhub's Expert (6.9k points)
 
Best answer
print("PATTERN.......")

k=5

for i in range(12):

    if i<=5:

        for j in range(i+1):

            print(" * ",end="")

        print("\n")

    elif i>5 :

        for j in range(k+1):

            print(" * ",end="")

        print("\n")

        k=k-1

Related questions

 Go to your Branch CSE or IT | ECE | EE, EIC or EEEMECE
 Know About Popular Colleges/Universities  List of IITsList of NITs | RTU-KOTA | Manipal University-Jaipur | JECRC University | Amity University Jaipur | BIT Mesra-Jaipur | MODY UNIVERSITY | LNMIIT-Jaipur | JK Lakshmipat | Banasthali Vidyapith | POORNIMA University
 Exams:   List of Exams After Graduation | List of Engineering Entrance Examinations (UG/PG) | JEE Main | JEE Advanced | GATE | IES | ISROList of PSUs
Placements:  List of companies | Logical Reasoning Questions | Quantitative Aptitude Questions | General English Questions | Technical-MCQ and Interview Questions
 Download Previous Year Papers For:  GATE | IES | RAJASTHAN TECHNICAL UNIVERSITY (RTU-Kota)RPSC Technical Exams | ISRO
 Online Free Training:  Artificial Intelligence(AI) & Machine Learning(ML)Python Programming | Internet of Things-IoT | OpenCV (Open Source Computer Vision Library) | LINUX | Big Data : Hadoop | 
 Goeduhub
About Us | Contact Us   Social::   |  | 
...