Python Pattern Programs | Printing Stars '*' in P Shape || Python Interview Questions

preview_player
Показать описание
Code:: Check Comments
Рекомендации по теме
Комментарии
Автор

for row in range(7):
for col in range (5):
if col==0 or (col==4 and (row==1 or row==2)) or ((row==0 or row==3) and (col>0 and col<4)):
print("*", end="")
else:
print(end=" ")
print()

trendyworldtech
join shbcf.ru