Получение моей входной выходной буквы в звездном коде шаблона для цикла ⇐ Python
-
Anonymous
Получение моей входной выходной буквы в звездном коде шаблона для цикла
I need the below specific working input output letter to star pattern code to loop until I type ‘stop’. This is specifically related to grids, iterations and conditionals in relation to Letter to Star Pattern.
def pattern(): for i in range(len(name)): if name =="B": print_B = [[" " for i in range (5)] for j in range (5)] for row in range(5): for col in range(5): if (col==0) or (col==4 and (row!=0 and row!=2 and row!=4)) or ((row==0 or row==2 or row==4) and (col>0 and col
Источник: https://stackoverflow.com/questions/780 ... de-to-loop
I need the below specific working input output letter to star pattern code to loop until I type ‘stop’. This is specifically related to grids, iterations and conditionals in relation to Letter to Star Pattern.
def pattern(): for i in range(len(name)): if name =="B": print_B = [[" " for i in range (5)] for j in range (5)] for row in range(5): for col in range(5): if (col==0) or (col==4 and (row!=0 and row!=2 and row!=4)) or ((row==0 or row==2 or row==4) and (col>0 and col
Источник: https://stackoverflow.com/questions/780 ... de-to-loop