irene paniagua

Generation

generate functionFri, 07 Apr 2023

haz un tablero usando los caracteres de unicode en el rango u250C..u2573 e introduciendo el tablero que nos dan entre el. tablero=[[1,1,1,1],[2,2,2,2],[3,3,3,3]]

def table(tablero,left,right,top,bottom,fill,spacing): temp = [] res = [] for i in tablero: for j in i: temp.append(str(j)) temp.append(spacing) res.append(fill.join(temp)) temp = [] res = "\n".join(res) return left.join("\n".join(res))+right table([[1,1,1,1],[2,2,2,2],[3,3,3,3]],"\u250C","\u2510","\u2502","\u2514","\u2500","\u2500")

Want to kickstart your project?Use the new AI Studio to create your code