-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
44 lines (33 loc) · 918 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"""
i = 1
for color in 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'violet':
print('#', i, ' color of rainbow is ', color, sep = '')
i += 1 """
""" print(1, 2, 3)
print(4, 5, 6)
print(1, 2, 3, sep=', ', end='. ')
print(4, 5, 6, sep=', ', end='. ') ## ПРИМЕР КАК ОФОРМЛЯТЬ ВЫВОД
print()
print(1, 2, 3, sep='', end=' -- ')
print(4, 5, 6, sep=' * ', end='.') """
"""
# ЦИКЛЫ WHILE С ФЛАГОМ США
first_counter = 0
while first_counter < 5:
print("**********---------")
first_counter += 1
second_counter = 0
while second_counter < 4:
print("-------------------")
second_counter += 1
ЛИБО ТАК
for i in range (4):
print("**********---------")
for i in range (4):
print("-------------------")
"""
""" for i in range(3):
print(i)
print("For loops are great!")
Считает сколько раз в цикле мы
"""