Python Number Pattern - Reverse Floyd's Triangle

preview_player
Показать описание
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 2:

Star Pattern:

Format Function:

Columns wise Pattern:

For more free tutorials on computer programming
Рекомендации по теме
Комментарии
Автор

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, "<3"), end=" ")
c -= 1
print()

Thank you!!

nonoobott
Автор

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!

Crinsm_Carnage
Автор

Thank you so much!! I'm getting to understand FOR loops much better with your videos.

Igor-vkfl
Автор

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.

MDIMRAN-zerj
Автор

Thank you so much. My placement season is going to start your videos are so helpful 😇

dineshkumark
Автор

Her style of explanation is very nice😍😍

entertainmentraja
Автор

Thanks You So Much Madam I Have Learnt Many Things By Watching Your Videos ❤️🥰😇

bhargavateja
Автор

Good tutorial for Python... Not sure why you have stopped your videos...

sivagssri
Автор

Please continue the series humble request you mam

satishnaidu
Автор

thx madom pls make video for reverse alphabet program for loop

abhiramveerastu
Автор

Hi did you already posted video about heap sorting algorithm??

venkateshrasipuram
Автор

Please do tell us hallow stars patter and hallow numbers..
Thank you

Universal_Dubbing_World
Автор

x = 15
for i in range(5):
for j in range(i+1):
print(format(x, "<3"), end=" ")
x-=1
print()😅my shortcut

kishanshetty
Автор

Good morning madam
Just now try your method as you said
But its not showing triangle
Could you please help me madam

balu
Автор

Mam this video which is i and j pls explain mam

ekumaresan
Автор

Hai Madam! could you explain what is "<3" ?

ravindarreddy
Автор

Good evening mam. I kind request mam. Can you please help me to solve the problem on printing prime numbers in right triangle pattern

SHYAMSUNDAR-ivuv
Автор

What if if the initial value is 10 or 15 instead of 1

Mnbvcxz
Автор

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

python
Автор

Which code playground do you use madam?

familyvibes