Star Patterns with Python Loops | Part 1 - Left Half Pyramid

preview_player
Показать описание


Follow along with this tutorial to construct a left pyramid pattern using Python for loops. Subscribe to the channel for more tutorials.
Рекомендации по теме
Комментарии
Автор

Excellent. I will subscribe so I can learn more ...very well explained

trevorhayden
Автор

for i in range(5):
print((i+1) * '*', end="\n")

The above lines with a single for loop should be enough to print it with minimum complexity

ShilpaAR-fewd
Автор

Nice explanation! ... what is the app you are using in the tablet for drawing?

vmguerra
Автор

Good Explanation. Make video for some more * patterns

smartbhuvii
Автор

I have a more concise solution:
for i in range(5):
print('*'*(1+i))

ChristianoSts
Автор

Madam video to pura upload karna chahiye

EpistemiaX
Автор

don't know difference between row and column 3:24

penugondasaichand
Автор

This would be simple
{
for i in range (10):
print("*"*i)
}
and prints out [
*
* *
* * *
* * * *
* * * * *
* * * * * *
* * * * * * *
* * * * * * * *
* * * * * * * * *
* * * * * * * * * *
]

AbiniveshAcademicCreations
Автор



for i in range(len(line)):
tc=line[:i]
print(tc)
for i in range(len(line)):
tc=line[i:]
print(tc)

sehajbirsingh
join shbcf.ru