Решение задач Code Wars на Python. Total amount of points. 8 kyu
Our football team has finished the championship.
Our team’s match results are recorded in a collection of strings. Each match is represented by a string in the format “x:y“, where x is our team’s score and y is our opponents score.
For example: [“3:1“, “2:2“, “0:1“, ...]
Points are awarded for each match as follows:
if x more y: 3 points (win)
if x less y: 0 points (loss)
if x = y: 1 point (tie)
We need to write a function that takes this collection and returns the number of points our team (x) got in the championship by the rules given above.
Разбор задач с Code Wars:
Code Wars 8 kyu -
Code Wars 7 kyu -
Разбор задач по Python (Питон):
“Поколение Python“: курс для профессионалов -
“Поколение Python“: курс для продвинутых -
“Поколение Python“: курс для начинающих -
“Программирование на Python“ -
Единоразовая поддержка -
5 views
248
84
6 days ago 00:07:57 4
Чиновник потребовал от жителей не быть иждивенцами и решать проблемы самостоятельно