Myvideo

Guest

Login

Решение задач Code Wars на Python. Total amount of points. 8 kyu

Uploaded By: Myvideo
1 view
0
0 votes
0

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“ - Единоразовая поддержка -

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later