8:01 can also print this pattern for i in range (5,0,-1) print("*"* i) i+=1 11:50 for i in range (5,0,-1): for j in range (i,0,-1): print(j,end="") print()
@ghostdocter900625 күн бұрын
8:01 what is the need to increment the i?
@rameen58425 күн бұрын
@ghostdocter9006 to print the value of "i" in new line
@Begins_with_coding2 ай бұрын
Question no 7 answer r = int(input("Enter number of rows you want")) for i in range(r): for j in range(r-i-1): print(" ", end="") for j in range(i+1): print("*",end=" ") print() for i in range(0,r-1): for j in range (0,i+1): print(" ",end="") for j in range (0,r-i -1): print("*",end=" ") print()
@shristisingh643014 күн бұрын
This video is really very helpful
@pradipdas32432 ай бұрын
#Q6. Make the pattern # * # * * * # * * * * * # * * * * * * * # * * * * * * * * * x=int(input("Enter a number:")) for i in range(1,x+1): for j in range(x,i-1,-1): print(" ", end=" ") for k in range(1,2*i): print("*",end=" ") print() #Q7. Make the pattern # * # * * * # * * * * * # * * * * * * * # * * * * * * * * * # * * * * * * * # * * * * * # * * * # * x=int(input("Enter a number:")) for i in range(1,x+1): for j in range(x,i-1,-1): print(" ", end=" ") for k in range(1,2*i): print("*",end=" ") print() for i in range(1,x): print(" ",end=" ") for j in range(1,i*2+1): print("",end=" ") for k in range((x-i)*2-1,0,-1): print("*",end=" ") print()
@dipikarawal776619 күн бұрын
❤❤ thanks ❤😊
@GulfaamGaming5 ай бұрын
Kal sy video dekh rha hon bhai youtube py aap ki video main mujy ye pattrens smj main aain hain Love From Pakistan ❤️❤️
@codingwithsagarcw5 ай бұрын
Thanks bhai
@GulfaamGaming5 ай бұрын
@@codingwithsagarcw You Most wellcom and Thnkx for Reply❤️
@Begins_with_coding2 ай бұрын
Question no 6 answer r = int(input("Enter number of rows you want")) for i in range(r): for j in range(r-i-1): print(" ", end="") for j in range(i+1): print("*",end=" ") print()
@prajwalparaskar77052 ай бұрын
wrong, because its not printing spaces
@makarsh292 ай бұрын
"""print this pattern * * * * * * * * * * * * * * * * * * * * * * * * * """ for i in range(1,6): print("* "*5) it can be done in this way too.
@AbdulHaadi-h7vАй бұрын
Wow best explanation
@KshitijJoshi-w6n7 ай бұрын
Bhaiya app c# sikha sakte hai??😅
@OnlyBicepsLover5 ай бұрын
Yrr bro hollow square wala code run nhi ho rha error hai as it is daal ke dekha
@canok79746 ай бұрын
thank you for this good video bro!
@SimiiChouhan11 күн бұрын
Albhabet pattern. Bnao ...bhai ..
@ravishankar6700Ай бұрын
Thankyou bhayya😢
@priyanshujuyal93382 ай бұрын
Answer for question no. 2 ? for i in range(1,6): for j in range(1,6): if i == j: print(i * "*") And you can use the same code for 3 question . Range be like (5,0,-1) 🙂
@DakshMorya-d4q2 ай бұрын
What is the Use of. ( end=)
@AyanRaj-u8t9 күн бұрын
To break line
@yo.vikrant8 ай бұрын
How can I learn dsa with python
@CSWale1Ай бұрын
Which software is this sir?
@rayyanquadir365126 күн бұрын
Visual code
@CSWale19 күн бұрын
@@rayyanquadir3651 visual studio code? Ye wala
@TeChTrOvEoFfIcIel15 күн бұрын
Triangle ko bina nested loop se kaise banaye
@kavitanagpal88636 ай бұрын
very nice video
@GameJourneyHub8 ай бұрын
I love this python series.
@Onlystatus6997 ай бұрын
Pura course lae sir
@mahimarya98367 ай бұрын
Bro django ka tutorial leke ao
@rohanverma-r8k3 ай бұрын
bro i write same code but all stars are printing in a line?
@Suryadarshanlive8 ай бұрын
♥️
@aseerahnaf77137 ай бұрын
Sir please make video on .py(kivy) to .apk ❤❤😭😭
@SadafSaeed-mv1kv3 ай бұрын
Bhai ap ny logoun ki trhan apny marjan set ni kr lyna ka itna pay kro to seikhoun gah samjaoun gah ju pay ni kr saqty wo bhi seikh saqein life mai agy bhad sakein
@anushka101Ай бұрын
Itna complicated text kyu krna
@RanikilifeАй бұрын
Bruhh i coded the same but it all started writing in single line i guess it's not working....
@Ryuma9613 күн бұрын
did u use the end parameter
@ITSPRONIBIR7 ай бұрын
brooo make a life sim please 😂😮😢😊😂❤🎉
@successstudyroom8 ай бұрын
Bhiya aap aapni video me nhi aarahe ho jab aap ko dekte hai tab samj aata hai
@Afan_Gaming7868 ай бұрын
Hello bro
@inclikes6917 күн бұрын
But using while loops you can print this in one loop one variable