Python Number Pattern - Reverse Floyd's Triangle
Вставка
- Опубліковано 18 лип 2021
- In this Python Pattern Printing Programs video tutorial you will learn how to print numbers in right triangle shape in detail.
To print the pattern i will use nested for loops.
In this program pattern contains two for loops: the first loop is responsible for rows and the second for loop is responsible for columns.
Number Pattern Part 1:
• Number Pattern | Part ...
Number Pattern Part 2:
• Number Pattern | Part ...
Star Pattern:
• Python Pattern Program...
Format Function:
• Python Pattern Program...
Columns wise Pattern:
• Python Pattern Program...
For more free tutorials on computer programming
/ amulsacademy
AmulsAcademy
Thank you so much Amuyla! I have been doing coding for 2 months now, and have been watching your tutorials. They have been very helpful. Thank you!
Thank you so much!! I'm getting to understand FOR loops much better with your videos.
Thank you so much, ma'am.
I completed all pattern print tutorials.
Please ma'am make a simple project tutorial for beginners to advance for 20-30 days.
Again thank you so much.
Good tutorial for Python... Not sure why you have stopped your videos...
Great solution. Honestly, I've learned so much about python proramming concepts from your channel. As regards this, I have an alternative solution. So it's more like a quadratic sequence that follows the rule:
(n^2/2 + n/2) where n defines each term from 1 all the way. So when n is 1, we have 1 and when n is 2, we have 3 which is a triangular series pattern.
Hence this is my code:
n = int(input('Enter a number : '))
c = int(0.5*n**2 + 0.5*n)
for i in range(n):
for j in range(i+1):
print(format(c,"
When the pattern does not starts with one. We have subtract 1 from (0.5*n**2 + 0.5*n) and add to the desired starting number.Here is the code:
n = int(input())
k = int(input())
a = int((k ** 2)*0.5 + 0.5*k)
b = n + (a - 1)
for i in range(0, k):
j = 0
while j
@@vharindrareddy tq
I was serching this and feel difficulty in providing space now it is clear sk tq
Thank you so much. My placement season is going to start your videos are so helpful 😇
All the best 😊❤️
Thank You so much for this videos.
Good evening mam. I kind request mam. Can you please help me to solve the problem on printing prime numbers in right triangle pattern
Please continue the series mam............i humble request you mam
hey bro i want one question and i want solution from you i have one arry like string ["4599"],["6625"],["7777"],["12345"],[7070] but i want print only this out put like this ["4599"],["6625"],["7777"] means i want print that string which string have same string last two or 1st and next if are same and or whole are same like in this arry ["7777"] how will sove this question
Thanks You So Much Madam I Have Learnt Many Things By Watching Your Videos ❤️🥰😇
Pleasure 😊
Which code playground do you use madam?
Hi did you already posted video about heap sorting algorithm??
No 😊
Please do tell us hallow stars patter and hallow numbers..
Thank you
Her style of explanation is very nice😍😍
Thank you 😊
@@AmulsAcademy madam pls reply to my comment, i aske you a question. please reply for that
will u provide pdf for patterns pls
Thanks
in format function y we using (m , "
Mam this video which is i and j pls explain mam
thx madom pls make video for reverse alphabet program for loop
Good morning madam
Just now try your method as you said
But its not showing triangle
Could you please help me madam
What if if the initial value is 10 or 15 instead of 1
x = 15
for i in range(5):
for j in range(i+1):
print(format(x,"
inputs are
after
4
a b c d
f e f g
t e r r
a b i j
output wants to come as
[(0,0),(1,0),(2,0),(2,1),(2,2)]
different inputs are
search
4
s e a c
r c c c
h e e e
h e e e
output wants to come as
"no such word is there"
how will do this in python
pls explain
thank you
Pleasure 😊
So good..
Thank you 😊
Tq mam
Hai Madam! could you explain what is "
Spacing for 2 number digit use
Thankyou mam
Pleasure 😊
"
We are formatting number here, for more information check out the video on format function 😊
madam pls explain the pattern
17 18 19 20
14 15 16
12 13
11 for n=4
Okay madam I got it
Amulyas academy any New program in offing
Hii ma'am
I have one problem
How to print string like these using for loop
Tk
U h
S a
H p
A R
R E
Help me out
for i in range (1,6):
for j in range (1,i+1):
print(j,end=" ")
for j in range (2,7-i):
print(" ",end=" ")
for j in range (i,0,-1):
print(j,end=" ")
print()
In this code, it's repeating 5 in the last row
This is desired output
1 1
12 21
123 321
1234 4321
123454321
Can somebody help
24
23 22
21 20 19
18 17 16 15
14 13 12 11 10
please explain this problm , im so confused
there is an easier way to do this program -
******************************************
p=15
for i in range (1,6):
for j i range (1,i+1):
print (format(p, "
Hi akka few days back nenu c programming gurinchi adiganu videos cheyamani gurtu unda
edo okkati cheppandi plz akka meeru cheptanu ante wait chesta lekunte vere Vallavi Elagola artham chesukunta videos
When n=10 nd k(no of rows) is 5 then how can we print in reverse order
@@PriyankaGupta-hm7gteveryrow increase one place of number
@@smw_solutions can you make program
@@PriyankaGupta-hm7gt which program
1
6 2
10 7. 3
13. 11 8. 4
15. 14. 12 9 5
Mam please do this program video requesting you
I think with an list this can easily be realised like:
n = input()
list = [0 for i in n]
k=n
list[0]=1
while n>0:
for i in range(k):
list[i] = list[i] +n
if list[i] > 0:
print(list[i], end=" " )
n=n-1
print(n)
# not tested - only an idea
@@VI-tb4jq kk please test and let me know the correct output
Your voice is cute