1) She closed the door carefully
2) The Russian soldiers fought f
for peace and freedom.
3) The territory has been checked for explosives
So we can
start.
4)
the wind began to blow and we had to find a shelter.
5) They had to train
to achieve even slightest result.
6) It wasn't easy to parachute, the wind was blowing
7) I can't play the drums, but I can play the guitar quite
8)
drivers feel helpless on slippery roads.
9) The rest of the group was moving so
that we had to wait for
them.
10) After a month of training we could do the trick
2) The Russian soldiers fought f
for peace and freedom.
3) The territory has been checked for explosives
So we can
start.
4)
the wind began to blow and we had to find a shelter.
5) They had to train
to achieve even slightest result.
6) It wasn't easy to parachute, the wind was blowing
7) I can't play the drums, but I can play the guitar quite
8)
drivers feel helpless on slippery roads.
9) The rest of the group was moving so
that we had to wait for
them.
10) After a month of training we could do the trick
import random
list = []
maxValue = 0
for x in range(5):
list.append(input(f"{x + 1} строка "))
for x in range(5):
if(maxValue < len(list[x])):
maxValue = len(list[x])
for x in range(5):
space = " " * (maxValue - len(list[x]))
list[x] = space + list[x] + f"{x} - пробелов: {(maxValue - len(list[x]))}"
for x in list:
print(x)
minus = 0
plus = 0
index = 0
list = []
print("введіть массив елементів в такому вигляді: \n1 2 3 -1 -2 -3")
string = input()
for x in range(len(string)):
if(string[x] == " " or x == len(string) - 1):
list.append(int(string[index:x+1]))
index = x + 1
for x in list:
if(x < 0):
minus +=1
else:
plus +=1
if(plus > minus):
for x in range (plus - minus):
list.append(random.randint(-999, -1))
else:
for x in range(minus - plus):
list.append(random.randint(1, 999))
for x in list:
print(x)