File size: 406 Bytes
4f2e460
 
 
 
9732da2
 
4f2e460
9732da2
05b6dd1
d564260
1f72f4f
d564260
6e7bf28
 
 
 
 
 
 
 
 
 
1f72f4f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import gradio as gr

def build(size=5):
    tot = size*size
    r=0
    while r<tot:
        ro=""
        for c in range(size):
            ro+=f' {tot-c-r}'
            
        print(ro)
        r+=size
        
    box=[]
    box_cent=int(tot/2)
    num_h,num_v=0,0
    for i in range(1,tot):
        box[box_cent]=i
        num_h=0-1
        box_cent+=(num_h+num_v)
        print(box)
        
build()