Python Pattern Programs - Printing Numbers in Right Triangle Shape
ฝัง
- เผยแพร่เมื่อ 24 ต.ค. 2017
- In this Python Pattern Printing Programs video tutorial you will learn 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
I have been using Python 2 for a long time and I didn't know that print is a statement in Python 2...
Thank god I came across the video..🙏🙏
Thank you so much...❤️
I love the tutorial, thank you!
Your voice is so different specially at python word.
Best teacher for python programming
Very good explanation it is easy to understand after your explanation. Now I know how to print the patterns Iam a beginners but I understand the logic to print the patterns thank you madam
Thank you for an interesting and fun program.
Welcome:)
n=int(input("please input"))
list=[ ]
word=" "
for i in range(1,n+1):
list.append(str(i))
x=word.join(list)
print(x)
for j in range(1,n+1):
list1=[ ]
word1=" "
while len(list1) != j:
list1.append(str(j))
y = word1.join(list1)
print(y)
I am a beginner myself. Your video helped alot. Hope my piece homework is not too embarrasing. haha
Best explanation ever...
Good explanation ...very usefull for new learner....
To my consciousness,this is the best explanation for beginners.!
Hi Madam,
nice teaching
i am understanding properly
when will use this type of pattern program
Best explanation never before never after
Thank you :)
The thing u just said ,its a floccinoccinihilipilification.......
Please make more python programming examples videos. Great way of teaching
Thank you:)
Will do :)
first year CSE ?
Thank you friend, this was so god damn helpful!
thank u for teaching about python
it was helpful to me thank you!!
Pleasure :)
Thanks Mam. Excellent and cool explanation. Always confused about the patterns,this video has made me clear. Keep posting.
Thank you :)
I want talk to you about program related please give me your email id or any contact
Thanks a lot.Take love from Bangladesh.
Pleasure 😊
Thank you madam thankq so much your way of explanation is superb
Thank you :)
Nobody did not teach like you in the youtube,madam super🙏
Thank you 😊
thankyou so much
great help
My Pleasure:)
your voice is awesome....ti gives me extraordinary inspiration to learn python programming and I love it💙
Thank you :)
Can u send me any advance python programs ?
Yes really I am just falling in love with
🤣🤣🤣🤣
very good explanation
What my sir is not be able to do is done by you
Thanks a lot
This is a student just one day before final exam........
Very good explanation.. much easier to follow.. thanks a lot.
Glad it was helpful!
I love your "tri tri tri"❣️🙂 and i love the video too
her accent of saying those numbers at 6:58 was so satisfying lol
😂✋
Thank you very much.
nice explanation
very good
thanks
It is very much helpful thank you so much
Pleasure :)
Please do upload more videos of pyramid and programmes logical
Thank u🙌🏻♥️
Mam can you pls tell how to do this programme using while within while
Thank You very much !!!
Pleasure :)
Dear Amul's,
Can you pls make a video on permutations concept. seems to be not done yet.
sure:)
good explanation
very nice! thank you very much
Glad you liked it!
Well explained..thank you
Welcome:)
Hello
Thank you so muchh
very good way of explaining dear...Thanks
Thank you:)
Really the method of explaining is so much of absorbing all things going with the flow.....:) Can you please upload few more videos on building patterns of numbers like forming a square or pyramid by taking input of range of two numbers from a user and then printing the numbers within that range???!!!
Thank you:)
Soon i will upload more videos on patterns:)
Thank you very much Amul, you helped me a lot! 🙂🙏
Glad to hear that :)
My xam starts on dec 4. Please make as soon as possible. I can get you more subscribers
Particularly which topics you want? so that we can cover that first:)
Ma'am,thank u so much!❤❤❤
Most welcome 😊
Thank you so much👍👍
My pleasure:)
Nice explanation mam thank you so much
Most welcome 😊
Thank you🥰
Voice n teaching 😊😊
Thank you 😊
which software you are using for coding please guide
Smarta$$! thanks
rng= int(input(" enter the range : "))
for j in range(1,rng+1):
print(str(j)*j)
nice one.
how to write 1111 then 2222 then 3333 .....etc
Hi! Can you please make a video on the question: If a list in python has mix of strings & numbers, how will you make separate lists of strings & numbers? I saw ord() for getting ASCII code in python & chr() for converting ASCII codes to characters somewhere & tried to use them to get answer of this question but it did not work!! :(
Try this:
list1 = [1,2,"amul","x",4]
list2 = [i for i in list1 if str(i).isdigit()]
list3 = [i for i in list1 if str(i).isalpha()]
print(list2)
print(list3)
:)
What is the Syntex for the program to run ?
i want this done by while loop method will u
U are literally 👍🏻 super....
Thank you :)
Gud explanation I really inspired
Thank you so much :)
Ma'am will you upload a video on some important patterns (star and number) for class 10 as per CBSE guidelines
Great
how can i build the list of pyramid with different numbers
Thanks for you
Welcome :)
thanku
Very best class
Thank you :)
You are fabulous 🔥🔥🔥🔥
Thank you :)
I didn^t understand second part. 7.13 .We said for x in i but we didn^t use x. When ı delete that line input is beinf 12345. what is the real reason we need this line? Could somone help?
Thank you
You're welcome :)
hi ;
u have mentioned first row as 1 plz just clear my ambiguity was it not be mentioned like index zero as u have written range(1,i+1)
Why it is not like (0,i+1).
and if we write zero what whould be the consequences.
When you are printing number pattern, i want to print number from 1 right.
1
12
123
1234
here first we want print number 1, that's why i took range from 1.
you can take 0, then it will start the pattern from 0
if you take range(0,i+1)
then it will print,
0
01
012
0123
like this .
If you want take range from 0 and if you want to print number from 1 then you can write program like this:
for i in range(0,5):
for j in range(0,i+1):
print(j+1,end="")
print()
:)
please add video on interview perception,which help to crack interview pls pls
How do you do this with one print statement
if there should not be any space after the each element of the last column and no new line after the last row.what should i do?
you can put print() and space first.
for i in range(5):
print()
for j in range(i+1):
print(" ",i,end="")
:)
But why?
I didn't understand Ma'am
Can you please make videos on interview questions and more videos on C programs
Will try 😊
Ty
it is giving error as invalid syntax...when i had copied the whole program u wrote on your interactive mode...the equals to sign in end="" is giving the error i dont know why...
I think you are using python 2 version.
This program will run in python 3 version.
for python 2:
n = input("number of rows:")
for i in range(1,n+1):
for j in range(1,i+1):
print i,
print
:)
Ur voice is very smooth,
I like it 😍😍😍😍
Thanks 😌
Welcome 😊
Thanks a lot mam! :)
Welcome :)
Does anyone know which editor is she using ?
Ma'am , please clarify my doubt.. Which version of python you're using? Python 2 or 3???🥺
Can you write this logic in just one line without using strings?
First Wale ka kya hum log will Loop se nhi baana sakte hai
Write a Python program that takes an integer input as height from the user
and then print the pattern. what will be the answer of this?
plzzz..Explain it by using nested while loop...please maam
Tysm mam
Super it help me lot
My pleasure:)
Can we perform it by while loop?..
Yes :)
Write a program that accept any positive integer number from keyboard and check whether the number is Prime or Composite (Using While-Loop) please solve
this task
how to print double right angled triangle using python for loop
*
* *
* * *
* * * *
*
* *
* * *
* * * *
how much expertise should I have in python to get a job in Bangalore?pls, say in details with complete details for a data analyst job.
Hi !
Can you do a vedio to print an pattern of right angle triangle with numbers
With only one 'print' statement
I will try :)
Thanks a lot
My pleasure :)
My pleasure :)
Hi. Very useful. However, the i and j numbers are the index numbers of rows and columns right? I could not grasp j starting from 1 in the video for floyd's triangle. Then I realised j starts from 1 means it starts from col no.1 and goes till col no. (i) .am I right?
In this video some people might get confused I think between index number and actual content inside, since both start from 1 in each row. I saw another similar video from your channel only..that was when I understood the funda of index numbers. Thanks :)
sorry to be offtopic but does anyone know of a way to get back into an instagram account??
I was stupid lost my login password. I appreciate any tricks you can give me.
@Leonidas Levi Instablaster :)
@Ulises Vihaan I really appreciate your reply. I got to the site through google and I'm in the hacking process atm.
I see it takes quite some time so I will get back to you later when my account password hopefully is recovered.
@Ulises Vihaan DAMN IT ACTUALLY WORKED :O Literally got access to my ig password within ~ 45 mins by using the site.
I had to pay 15$ but definitely worth the price :O
Thanks so much, you saved my ass !
@Leonidas Levi glad I could help :)
hello! so I did the exact pattern you taught in the video-
n = int(input("Enter the number of rows"))
for i in range (1,n+1):
for j in range (1,i+1):
print(j, end="")
print ()
however, when ran module, it doesnt give me the simple pyramid pattern; it gives me this instead-
1
1
2
1
2
3
1
2
3
4
1
2
3
4
5
do you know how I can fix this? thank you!
hey so i think mine works copy paste it and try it basically its just the position that you placed the print function in the last line
n = int(input("Enter the number of rows"))
for i in range (1,n+1):
for j in range (1,i+1):
print(j, end=" ")
print ()
Very nice
Thank you :)
Hello mam apka explaination way to osm h hi
Apki voice kitni pyari hai
😅Bahot jyada hi cute lgti h apki avaj
Thank you :)
@@AmulsAcademy mam 😄plz facecam kriye naa ye bs meri ni aur v Learner's ki mang hai
programme for the second arrangement by using only one print() function
tbh ur voice is so sweet :) ....some times i watch more videos only to listen to ur voice :)...um may i knw ur name?
Thank you so much:)
My name is Amulya.
Amuls Academy oh cool name :) looking for more good stuff from u learning more from ur channel than from my clg lol
But don't make spit sounds please. Have water b4 making videos.
Thank you.
I'm unable to understand 'Nested loops' and how the Outer and Inner loops execute. Can you make a video on it or suggest any website or article which explains this in detail.
I will try :)
@@AmulsAcademy Please do would be really helpful and thank you for your content.
Whatever you will think about me..i don't care but i just want to one thing "mujhe aapki awaaz se pyaar ho gyaa hai"🙊
hello amulya, i have watched your star paterne video that's amazing but i have face a minor error in diamond paterne, you will first enter the number of rows by user suppose that entered number is 5 but in the paterne number of row is 9 that,s wrong if we will enter 5 that means the required rows is 5, please correct it........
Thank you, i will check that :)
Please make a video on sum of digits
Sure will make it soon:)
mam plz can u provide the code using while loop..i am getting the first one but in reverse order and i cant find anywhere else using while loop.
Actually both pattern are same, for second pattern you need to print i value .
You can try by yourself.
If you need any guidance ask be back :)
@@AmulsAcademy no no mam..actually i was trying the pattern using while loop....but getting something weird...thats y i was asking for help using while loop
ya thanks
Pleasure 😊
I am trying to do the program on printing stars and numbers in diamond shape but able to get it.pl suggest something
Give me your program I will try :)
This is your recent program on amulyas academy