|
| 1 | +# Problem name: update_score |
| 2 | +# A hacker named Dan wishes to hack into a competition where they judge participants in three categories on a scale of 10. |
| 3 | +# Dan wants his friend Bob to win. |
| 4 | +# Bob will only win if he has all 10s while the other competitors, Jo and Stan, don’t. |
1 | 5 |
|
2 | | -#Problem name: update_score |
3 | | -#A hacker named Dan wishes to hack into a competition where they judge participants in three categories on a scale of 10. |
4 | | -#Dan wants his friend Bob to win. |
5 | | -#Bob will only win if he has all 10s while the other competitors, Jo and Stan, don’t. |
| 6 | +# Judges will store the scoring within a tuple ([...], [...], [...]). |
| 7 | +# The scores before Dan hacked are given. |
| 8 | +# Bob will be located as the first person the judges scored and will have the lowest points out of any participant. |
| 9 | +# Create a program to help Dan help Bob win. |
| 10 | +# Also, print Bob’s score at the end. |
| 11 | +# Use tuple unpacking to solve this problem. |
6 | 12 |
|
7 | | -#Judges will store the scoring within a tuple ([...], [...], [...]). |
8 | | -#The scores before Dan hacked are given. |
9 | | -#Bob will be located as the first person the judges scored and will have the lowest points out of any participant. |
10 | | -#Create a program to help Dan help Bob win. |
11 | | -#Also, print Bob’s score at the end. |
12 | | -#Use tuple unpacking to solve this problem. |
| 13 | +# the scores are given |
| 14 | +scores = ([1, 1, 1], [2, 2, 2], [3, 3, 3]) |
13 | 15 |
|
14 | | -#the scores are given |
15 | | -scores = ([1,1,1] , [2,2,2], [3,3,3]) |
16 | | - |
17 | | -#write your code below |
| 16 | +# write your code below |
0 commit comments