Skip to content

Commit a6f6bd1

Browse files
committed
Гистограмма с накоплением
1 parent 0b463f3 commit a6f6bd1

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
day_symb = ('*+ox-<' * 1000)
2+
m = 0
3+
subjects = []
4+
while True:
5+
day = input()
6+
if day == '':
7+
break
8+
else:
9+
subjects.append(day.split(', '))
10+
m += 1
11+
histogr = [str()] * len(subjects[0])
12+
for i in range(m):
13+
for j in range(len(subjects[0])):
14+
histogr[j] = day_symb[i] * int(subjects[i][j]) + histogr[j]
15+
histogr = [x.rjust(max(map(len, histogr)), ' ') for x in histogr]
16+
for i in range(len(histogr[0])):
17+
[print(h[i] * 2, end=' ') for h in histogr]
18+
print()

Гистограмма с накоплением/Условие.Гистограмма с накоплением/Условие.Гистограмма с накоплением.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)