Skip to main content

Posts

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):#in...

Python for loop and while loop in hindi (Part -10)

Subscribe * indicates required Email Address *                            For loops For loop iteration ke liye use hota hai , iteration ka dusra mtlb ho skta hai repetition , agar mai poochu ki kis chiz pe iteration to answer hai , iteration over a sequence like string, list , dicitionary , tuple , sets. Syntax: for iterator_name in iterating_sequence:        Statement...... Aayiye ise example ki madad se aur clear krte hai....... ------------------------------------------------------------------------------------------ #program of for loop in string r = 'rishabh' for x in (r): print (x) output: r i s h a b h ------------------------------------------------------------------------ #program to print items in list l =[ "ram" , "shyam" , "rishabh" , "shyamlal" ] for y in l: print (y) Output: ram shyam rishabh shyamlal # Ap dekh skt...