Python «вызов функции» не будет печатать звездный узор [закрыто] ⇐ Python
-
Anonymous
Python «вызов функции» не будет печатать звездный узор [закрыто]
I can’t figure out what the function is to call multiple functions to print full words in Star Pattern from my program below. This is another thing I am practicing from the program I have.
The original code that works is...
def pattern(name): list2 = [] 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 ... ar-pattern
I can’t figure out what the function is to call multiple functions to print full words in Star Pattern from my program below. This is another thing I am practicing from the program I have.
The original code that works is...
def pattern(name): list2 = [] 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 ... ar-pattern