Video není dostupné.
Omlouváme se.
Python Special Programs - Full Pyramid of Stars
Vložit
- čas přidán 12. 11. 2023
- Python Programming: Python Special Programs - Full Pyramid of Stars
Topics discussed:
1. Python Program to print the Full Pyramid of Stars Pattern.
Python Programming Playlist: • Python Programming
Follow Neso Academy on Instagram: @nesoacademy (bit.ly/2XP63OE)
Contribute: www.nesoacadem...
Memberships: bit.ly/2U7YSPI
Books: www.nesoacadem...
Website ► www.nesoacadem...
Forum ► forum.nesoacad...
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
#PythonByNeso #PythonProgramming #PythonPrograms
Good day, Thank you so much for the teaching. However on this question, the given code will result in a right angled triangle with the right angle at the bottom right side. It is not giving those white spaces between the stars. Kindly check on that please. Thank you once again
Excellence teaching style with excellence representation love you sir and neso academy for providing such great lectures in free of cost no one in CZcams showed such great representation except neso academy ❤❤❤❤❤❤
Thanks you dear jaspreet sing sir from Pakistan ❤❤🇵🇰🇵🇰long live for jaspreet sing sir from
rows = int(input("enter num of rows :"))
for i in range(1,rows+1):
for space in range(1,rows-i+1):
print(" ",end=" ")
for j in range(1,i+1):
print("*",end=" ")
print()
for k in range(1,rows):
for l in range(1,k+1):
print(" ",end=" ")
for m in range(rows-k,0,-1):
print("*",end=" ")
print()
Keep the good work going sir ❤
Hi sir, can u provide the Data structure and algorithms with python course zero to advance
Please keep it going....
def star_pyramid(base=5, reverse=False):
"""
"""
for row in range(1, base+1, 1) if not reverse else range(base, 0, -1):
print(f"{' ' * (base - row)}{'* ' * (row - 1) + '*'}")
def star_pyramid(base=5, reverse=False):
rows = [f"{' ' * (base - row)}{'* ' * (row - 1) + '*'}
"
for row in (range(1, base+1, 1) if not reverse else range(base, 0, -1))]
print(rows)
Thank's sir
Sir can you upload html and css Playlist please 🙏
sir i tried this but for me it's not including space, it runs without leaving space . i had checked the code for multiple times.
me too
i just got it. Put a space between the quotation marks in the "end". Example print (end= ' ')
Much useful one
They written code was not running