Horje
inverted trapezium pattern in python Code Example
inverted trapezium pattern in python
n=int(input())
l=[];c=1
for i in range(n,0,-1):
    temp=[j for j in range(c,c+i)]
    l.append(temp)
    c+=i
l=l[::-1]
for i in range(1,n+1):
    temp=['-' for j in range(n-i)]
    temp+=l[i-1]
    temp+=[j for j in range(c,c+i)]
    print(*temp)
    c+=i# Published By PKJCODERS




Python

Related
Dictionary get both key and value. Code Example Dictionary get both key and value. Code Example
random from list python Code Example random from list python Code Example
python-wordpress-xmlrpc get post id Code Example python-wordpress-xmlrpc get post id Code Example
form action in django Code Example form action in django Code Example
zoom in librosa.display.specshow() Code Example zoom in librosa.display.specshow() Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8