1) print("* * * * * * *\n* * * * * * *\n* * * * * * *\n* * * w * * *\n* * * * * * *\n* * * * * * *\n* * * * * * *")
2) print("11111\n11111\n*****\n*****\n*****")
3)
= int(input("Кол-во строк: "))
b = 0
n = "* "
m = "* "
while b<a:
print(n)
n = n+m
b += 1
#1:
for i in range(3):
print('* '*7)
print('* '*3, 'w ', '* '*3)
#2:
for i in range(2):
print('1'*5)
print('*'*5)
#3:
n = int( input( 'Введите количество строк: '))
for i in range(n):
print( '* '*i)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
1) print("* * * * * * *\n* * * * * * *\n* * * * * * *\n* * * w * * *\n* * * * * * *\n* * * * * * *\n* * * * * * *")
2) print("11111\n11111\n*****\n*****\n*****")
3)
= int(input("Кол-во строк: "))
b = 0
n = "* "
m = "* "
while b<a:
print(n)
n = n+m
b += 1
#1:
for i in range(3):
print('* '*7)
print('* '*3, 'w ', '* '*3)
for i in range(3):
print('* '*7)
#2:
for i in range(2):
print('1'*5)
for i in range(3):
print('*'*5)
#3:
n = int( input( 'Введите количество строк: '))
for i in range(n):
print( '* '*i)