Python Special Programs - Right Pyramid of Stars

  Рет қаралды 9,483

Neso Academy

Neso Academy

Күн бұрын

Python Programming: Python Special Programs - Right Pyramid of Stars
Topics discussed:
1. Python Program to print the Right 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

Пікірлер: 20
@Wisdomizer
@Wisdomizer 10 ай бұрын
These are interviewer’s top favourite questions. Guys at least 1000 likes for such an amazing content.
@NivyaGovindarajj
@NivyaGovindarajj 3 ай бұрын
rows=int(input("Enter the number of rows:")) for i in range(1,rows+1): for space in range(1,rows-i+1): print(end=' ') for star in range(1,i+1): print("*",end='') print() for i in range(rows-1,0,-1): for space in range(rows-i,0,-1): print(end=' ') for star in range(i,0,-1): print("*",end='') print()
@veeratzxmatey6146
@veeratzxmatey6146 3 ай бұрын
rows = int(input('enter the number of rows: ')) for i in range(1, rows + 1): # Print spaces for spaces in range(1, rows - i + 1): print(' ', end=' ') # Print stars in ascending order for star in range(1, i + 1): print('*', end=' ') print() # Move to the next line after each row # Now, print the descending part within the same loop for i in range(rows - 1, 0, -1): # Print spaces for spaces in range(1, rows - i + 1): print(' ', end=' ') # Print stars in descending order for star in range(1, i + 1): print('*', end=' ') print() # Move to the next line after each row
@yasaskarunathilaka627
@yasaskarunathilaka627 10 ай бұрын
short method👇 x=int(input("enter number")) for i in range(1,x+1): print("* "*i) for j in range(x-1,0,-1): print("* "*j)
@veeratzxmatey6146
@veeratzxmatey6146 3 ай бұрын
rows = int(input('enter the number of rows: ')) for i in range(1, rows + 1): # Print spaces for spaces in range(1, rows - i + 1): print(' ', end=' ') # Print stars in ascending order for star in range(1, i + 1): print('*', end=' ') print() # Move to the next line after each row # Now, print the descending part within the same loop for i in range(rows - 1, 0, -1): # Print spaces for spaces in range(1, rows - i + 1): print(' ', end=' ') # Print stars in descending order for star in range(1, i + 1): print('*', end=' ') print() # Move to the next line after each row
@EmmanuelOsarodion
@EmmanuelOsarodion 5 ай бұрын
rows = int(input('Enter number of rows: ')) for i in range(1, rows+1): for space in range(1, rows- i + 1): print(' ', end=' ') for star in range(1, i+1): print('*', end=' ') print("") for j in range(rows - 1, 0, -1): for space in range(1, rows- j + 1): print(' ', end=' ') for star in range(1, j+1): print('*', end=' ') print("")
@banibratamanna5446
@banibratamanna5446 10 ай бұрын
The given pattern can be obtained by using repetition operator "*" also......which is equivalent to same string concatenation operator "+" .... here's the code is given...... row=int(input("no. of rows : ")) for i in range(1,2*row): if i
@mohammedtoufiq6763
@mohammedtoufiq6763 10 ай бұрын
First one to comment 🥰
@sarvi2348
@sarvi2348 10 ай бұрын
#sir what you think about this approach rows = int(input("Enter the number of rows you want : ")) for i in range(1, rows, 1): if i < int(rows/2 +1): for j in range(1, i + 1): print("*", end=" ") print() else: for j in range(rows, i, -1): print("*", end=" ") print()
@orva_
@orva_ 8 ай бұрын
row =int(input("enter ")) for i in range (1,row+1): for j in range (1,row-i+1): print(end=" ") for k in range(1,i+1): print("*",end="") print(" ") for l in range (row-1,0,-1): for m in range(row-l): print(end=" ") for n in range(1,l+1): print("*",end="") print(" ") I don't know but it's feels wrong someone help plz😢
@walida4151
@walida4151 8 ай бұрын
facing the same problem
@ashishbansal9319
@ashishbansal9319 10 ай бұрын
#Homework Problem # Python Programs - Left Pyramid of Stars rows = int(input("Enter the number of rows : ")) for i in range(1,rows+1): for space in range(1,rows-i+1): print(end=" ") for star in range(1,i+1): print("*",end="") print() for j in range(rows-1,0,-1): for space in range(1,rows-j+1): print(end=" ") for star in range(1,j+1): print("*",end="") print() OUTPUT:-Enter the number of rows : 5 * ** *** **** ***** **** *** ** *
@LVecc
@LVecc 10 ай бұрын
rows = int(input()) for i in range(1, (rows*2)+1): for j in range(1, i+1): if i > rows: if j
@senorperez
@senorperez 10 ай бұрын
loving your channel and content very much, thanks alot. regards
@Doggy_Styles_Coding
@Doggy_Styles_Coding 10 ай бұрын
awsome coding :) greatly explained ^^
@Think_First12
@Think_First12 10 ай бұрын
Thank you sir 😊
@Abhilearncoding-ds6ch
@Abhilearncoding-ds6ch 10 ай бұрын
sir hind me
@AvneetKaur-d7j
@AvneetKaur-d7j 10 ай бұрын
sir when will you teach functions?
@nesoacademy
@nesoacademy 10 ай бұрын
It is the next chapter.
Python Special Programs - Sandglass Pattern of Stars
19:10
Neso Academy
Рет қаралды 10 М.
Python Special Programs - Fibonacci Sequence
16:12
Neso Academy
Рет қаралды 10 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 103 МЛН
ОТОМСТИЛ МАМЕ ЗА ЧИПСЫ🤯#shorts
00:44
INNA SERG
Рет қаралды 4,8 МЛН
Python Special Programs - Full Pyramid of Stars
20:06
Neso Academy
Рет қаралды 9 М.
09 : Modeling of Control system (Modeling of rotational mechanical system) part 1
19:29
Mechanical & Electrical Engineering Lectures ,
Рет қаралды 4,8 М.
Radxa X4: An N100 Pi
20:48
ExplainingComputers
Рет қаралды 57 М.
Нашумевшая задача математического клуба
6:01
Математика и фокусы
Рет қаралды 6 М.
Python Special Programs - Right Triangle Number Pattern
17:40
Neso Academy
Рет қаралды 8 М.
Python Special Programs - Armstrong Number
17:30
Neso Academy
Рет қаралды 9 М.
Goodbye, TAM
12:01
Action Retro
Рет қаралды 50 М.
Python Special Programs - Password Validation
18:27
Neso Academy
Рет қаралды 16 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17