Python Pattern Program - Printing stars and Numbers in Diamond Shape | Right Triangle Shape

  Рет қаралды 11,123

Amulya's Academy

Amulya's Academy

Күн бұрын

Пікірлер: 16
@phoenixmix9988
@phoenixmix9988 3 жыл бұрын
By the way i love your voice mam. and for the last part of this problem , you changed initial row range. So it obvious that many people might get confused .But i got some different solution for that as you taught us . And " HERE IS WHAT I COME UP WITH": n=int(input("Enter the no. of rows: ")) for i in range(n): m=i+1 #print space for j in range(n-i-1): print(" ",end=" ") #print star for j in range(i+1): print("*",end=" ") print(end=" ") for j in range(i+1): print(m+j,end=" ") m+=1 print() print() for i in range(n): #print space for j in range(i): print(" ",end=" ") #print number for j in range(n-i): print(n-j,end=" ") print(end=" ") for j in range(n-i): print(2*(i+j)+1,end=" ") print()
@Bread-vk8fl
@Bread-vk8fl 3 жыл бұрын
A-M-A-Z-I-N-G!!! Most didactic video I have ever seen of python (for loops)
@ankitarya792
@ankitarya792 3 жыл бұрын
Morning learning 😊😌☺🙌
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
:)
@computeacher8035
@computeacher8035 3 жыл бұрын
Good explanation
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@selvanm2872
@selvanm2872 3 жыл бұрын
👍👍👍
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@ankitarya792
@ankitarya792 3 жыл бұрын
Please do the FizzBuzz In 2 line code
@darshilkumar7816
@darshilkumar7816 3 жыл бұрын
can you remember me when you get famous?
@mohammadjobayed8315
@mohammadjobayed8315 3 жыл бұрын
Good explanation but i am still dumb!
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
No... trace the program you will understand better 😊
@mepromptengineer
@mepromptengineer 3 жыл бұрын
A P Q R A B Q R A B C R A B C D How to write code to print this pattern... Please tell me anyone.
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
We need to combine these two patterns here. A A B A B C A B C D another pattern is P Q R Q R R
@mepromptengineer
@mepromptengineer 3 жыл бұрын
@@AmulsAcademy how to combine those two patterns
@oggyandthecockroaches6457
@oggyandthecockroaches6457 2 жыл бұрын
n=4 for i in range(n): d=65 for j in range(i+1): print(chr(d),end=' ') d=d+1 d=80 d=d+i for k in range(i,n-1): print(chr(d),end=' ') d=d+1 print() (code for this question)
Python Program To Convert Given Integer To Roman Numerals | Programs
26:09
Solve any Star Pattern program in Python
18:44
Simply Coding
Рет қаралды 1 МЛН
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 2,6 МЛН
Do you love Blackpink?🖤🩷
00:23
Karina
Рет қаралды 21 МЛН
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
Star Pattern | Python Pattern Program
19:05
Amulya's Academy
Рет қаралды 12 М.
Solve any character pattern in Python
23:58
Simply Coding
Рет қаралды 57 М.
Number Pattern | Part 1 | Python Pattern Programs
24:08
Amulya's Academy
Рет қаралды 395 М.
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 2,6 МЛН