Skip to main content

Posts

Showing posts from June 24, 2020

Star pattern in python using for loop in hindi (Part -11)

                                                  PATTERNS      1.                             ***** ***** ***** ***** ***** 2. * ** *** **** 3. ***** **** *** ** * 4. * * * * * * * * * * * * * * * 5. 0 0 1 0 1 2 0 1 2 3 6. 1 2 2 3 3 3 4 4 4 4 7. 0 1 2 3 4 5 6 7 8 9 8. A B C D E F G H I J 9. A B B C C C D D D D 10. * * * * * * * * * * * * * * * 11.        * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 12. * ** *** **** ***** **** *** ** * ---------------------------------------------------------------------------------- #Pattern - 1 i= int(input("enter a number ")) for y in range(i): #outer loop tell us about the number of row for x in range(i):#inner loop tell us about the number of colum print("*" , end ="") print() Output: enter a number 5 ***** ***** ***** ***** ***** # Outer loop rows mai element(*) jodne ke liye hota hai. # Inner