Python Pattern Programs - Matrix Number Pattern

preview_player
Показать описание
In this Python Pattern Printing Programming video tutorial you will learn to print numbers in matrix shape.

#PythonPatternPrograms #PythonStarPatterns #StarPatterns

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

Cool..Finally i completed all the videos of patterns and I felt very excited doing each one of these. Great tutorial and absolutely great examples for beginners.Loved it :)

aishwaryalaxmiveeramalla
Автор

That is the most clear and amazing explanations i ever saw in my life.
Thank you

avindx
Автор

Awesome, clearly taught in simple manner thank you

t.gowthamarasu
Автор

Nook and corner you are clearly explained superb 👍

-ECE--VIGNESHN
Автор

Ma'am your explanation are amazing but i want videos based on competitive coding. & programs related to job requirements

AshuSingh-ustp
Автор

Thanks, Amulya. Another excellent problem with clear explanations and approach!

satyajitdas
Автор

n = int(input())
m = 2*n-1
start = 0
end = m-1
p = n
res = [[0 for i in range(2*n-1)]for j in range(2*n-1)]
while end >= start:
for j in range(start, end):
res[start][j] = p

for i in range(start, end):
res[i][start] = p

for j in range(start, end+1):
res[end][j] = p

for i in range(start, end+1):
res[i][end] = p
start = start+1
end = end-1
p = p-1



for i in range(2*n-1):
for j in range(2*n-1):
print(res[i][j], end = ' ')
print()

# i write this code this way, another way of solveing this problem.

beyond
Автор

Mam binary number ke pattern par video banao na...Jaise star air natural number ke banaye vaise

navinkarwa
Автор

Excellent A2
Make video for microcontroller

ie
Автор

Mam why O is in the matrix[ 0 for i in range] I dont understand pls can you tell me abt that

_PrathamTidke
Автор

i need to build a program in 24, but i am beginer and i need some help. can i get your help.

zr
Автор

Ma'am,
Can you please do a video on Pascal's triangle in python

jyaswanth
Автор

# my solution using Numpy
import numpy as np
n=int(input())
k=(2*n)-1
x=np.zeros((k, k), dtype=int)
for i in range(n):
x[i:k-i, i:k-i]=n-i
for i in x:
for j in i:
print(j, end=" ")
print()

bibekanandasahoo
Автор

n = int(input())
for i in range(n, 0, -1):
for j in range(n, 1, -1):
if j>i:
print(j, end="")
else:
print(i, end="")
for j in range(1, n+1):
if j>i:
print(j, end="")
else:
print(i, end="")
print()

for i in range(2, n+1):
for j in range(n, 1, -1):
if j>i:
print(j, end="")
else:
print(i, end="")
for j in range(1, n+1):
if j>i:
print(j, end="")
else:
print(i, end="")
print()

#another way of solving using forloop method

alokmishra
Автор

As an north indian, I find her accent very irritating. I skipped the video after 1 minute due to the irritation.

KunalSingh-knij