Python Pattern Programs - Printing Numbers in Right Triangle Shape
ฝัง
- เผยแพร่เมื่อ 10 ธ.ค. 2017
- In this Python Pattern programming video tutorial you will learn how to print numbers in right triangle shape in detail.
To print numbers in right triangle shape in python you have to use two for loops. the first loop is responsible for rows and the second for loop is responsible for column.
For more free tutorials on computer programming
/ amulsacademy
/ amulsacademy
Thank you! You're a blessing for me as I'm watching this a day before my exam. :D
Pleasure :)
1 min actually 😂😂😂
Me too
@@ketavshah4076 Seriously?
When i started learning python I started from amulya's academy.its great learning.thax for that.
Glad to hear that :)
thank you so much for uploading these video its very very useful for exams and quick learning
pl dont stop doing this python programming
Thank you :)
Just admired by your sweet voice. thank you for the tutorial :)
Welcome:)
I easily understood the logic..it was really informative and easy.. thanks
thank you so much for uploading this video , only your video is interesting in this boring subject
Thank you ma'am!! Finally After the whole session I understood this program through your video....💓
Glad to hear that :)
Hi. You are doing amazing. I am new to Python and learning. In your next videos, can you please just debug and try to explain the iteration? That will probably allow newbies like us to understand better :)
Thank you :)
I will try.
Your videos are very helpful to develop the logics
Thank you:)
you are doing fav job, and as usual your voice is lovely
Thank you:)
Very cute and clear voice. and easy to understand.. thank you mam
Welcome :)
n=5
for i in range(n):
for j in range(1,n+1-i):
print(j,end="")
print()
areee waah daraavne aadmi ...
Sir three line ma error dekha raha ha
i will surely gonna share this video to all my frnds
Thank you:)
This video is very useful for my exam
glad to hear that:)
thank you! you're so good. Hands up ^^
Thank you :)
ur just a blessing thank uuuuu
Thank you :)
dear teacher thank you so much for teaching
Pleasure 😊
Thank you so much
can be used for first pattern
for i in range(1,6):
for j in range(1,7-i):
print(j,end="")
print()
Best Video... thank you
Most welcome :)
Ma'am what will be the code for this program using while loop?? Please help
uffff jaaja entendi mejor en ingles, que los otros canales de youtube de español good thanks
Thanks I have my exam tomorrow
Mam is this right n=int(input("enter no."))
for i in range (1,n+1):
for j in range(1,n+2-i):
print(j,end=" ")
print()
If you are getting correct output then yes :)
wow now i understan pattern
I am getting output aas a straight line, not as pattern. ...?
Why it don't give o/p with below code ,1)if I specify stop value in col. 2) Why I can not give value of n in for loop itself:
for row in range (n,0,-1):
for col in range(1,0,row+1):
print(col,end=" ")
print()
Please explain logic behind - 1
For loop me syntax error btaa rha 2 line
Please give an example on Consecutive number in 3 rows and colums
Give me the pattern :)
How we can write this using while loop
Range (4,0,-1)
What will be the sequence?
thank u mam
Most welcome 😊
Ma'am can you pls line by line explain the execution of the 2nd program.....pls?
And also the first program please....its very important for me
what if we do not want to space between patterns in python 2.7
You can try this:
from __future__ import print_function
print("hi", end='')
print("hello")
or you can import sys
and can use
sys.stdout.write("hi")
sys.stdout.write("hello")
@@AmulsAcademy thank you so much
Can anyone help through while loop
Thanks mem❤❤❤❤🎉😂🎉
Mam meru baga explain chestunnaru ....
Naku oka help cheyandi mam ...
10digit mobile number lo last 3 missing ...how to findout that mam plsss help me
Thank you so much :)
can you explain more about the program?
how can i build the list of pyramid with different numbers
Give me the pattern please :)
@@AmulsAcademy it's random, numbers no matter
But why my output is coming in a vertical line not in triangle????
You need use end parameter in the print function 😊
Your voice is pretty! - _^
Thank you :)
@@AmulsAcademy i also like her voice
Mam i have to print opposite of 1st program please help😕🙏
opposite means?
You need to give me the output:)
You can try this:
for i in range(1,6):
for j in range(1,i+1):
print(j,end=" ")
print()
:)
@@AmulsAcademy mam
4 3 2 1
4 3 2
4 3
4
Can u give me answer for this program plzz
#whats wrong with this code, is it the rightway?
n=int(input("enter number of rows:"))
for i in range(1,n):
for j in range(1,n-i):
print(j,end=" ")
print()
Take range as 1 to n+1 in first for loop 😊
How i get pattern???
##
# #
# #
# #
for i in range(5):
print("#"+" "*(i)+"#")
:)
Hey mam how would I get the code for this pattern
TTTTTT
TTTTT
TTTT
TTT
TT
T
Thanks in advanced. it's hard to paste it on here. It's a T 6 T's at the top It ends with one T thanks.
#try this
a=''
b=0
for i in range(6,0,-1):
a='t'*i
print(' '*b,a)
b+=1
happy coding:)-
2+4+6+......+100=? how to get code for this..
num= 100
result =0
for i in range(1,num+1):
if i%2==0:
result = result + i
print(i," + ",end="")
print(" = ",result)
Check the final sum, whether it is correct or not ;)
Mam endl is not working in mobile plz guide me
You need to use end not endl :)
Thankew mam
WAP to print the following pattern:
1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
Please make a video on the given question above as fast as possible🙏🙏🙏🙏🙏
Try this you will get out :)
a=''
for i in range(1,6):
a+=str(i)
print(a[::-1])
for a in range(6,1,-1):
for b in range(0,a-1):
print(b+1,end="")
print()
@@shikharchaurasia8428 @Shikhar Chaurasia Lol bro, you are replying to my 2 years old comment. Now, I can solve much harder questions than this. That time, I was in 11th and I had exams in some days!🙂
Ma'am such a sweet voice 😍😍😊
Thank you :)
1
3 2
6 5 4
10987
Ma'am plz do the above pattern in Python
Sure :)
@@AmulsAcademy Thnx ma'am
@@AmulsAcademy ma'am can u give the program code today ?
😘😘
Thank you :)
your voice is so beautiful...
if any pro programmer text me i have a simple challenge for u
good thing is u dont get the answer in google
Expalin plz in hindi language
I will start Hindi channel soon :)
1 2 3 4 5
6 7 8 9
101112
Print the above mentioned pattern in Python plzzzz
n = int(input("rows:"))
k=1
for i in range(n,0,-1):
for j in range(i,0,-1):
print(format(k,"
how about this pattern??thanks ♥
345
12
0
maam can you tell cide for
6 5 4 3 2 1
5 4 3 2 1
4 3 2 1
3 2 1
2 1
1
if u find the answer then tell me please
what is the code for this type series or in descending order????
4321
321
21
1
please help me....
Hi Hussian
n = int(input("Enter no of Rows: "))
for i in range(n,0,-1):
for j in range(i,0,-1):
print(j,end=" ")
print()
The above code will be general for the number of rows entered by the user.
Hope you got it.
@@chakitbhandari3621 thank you very much
Welcome@@hussainaftab2703
@@chakitbhandari3621 do you help me for my assignments please
@@chakitbhandari3621 how can i contact with you??