## Challenges

Reddit challenges in python language.

Files Code and Result

### challenge147_easy

```'''
You must write code that verifies the awarded points for a fictional sport are valid.
This sport is a simplification of American Football scoring rules. This means that
the score values must be any logical combination of the following four rewards:

6 points for a "touch-down"
3 points for a "field-goal"
1 point for an "extra-point"; can only be rewarded after a touch-down.
Mutually-exclusive with "two-point conversion"
2 points for a "two-point conversion"; can only be rewarded after a touch-down.
Mutually-exclusive with "extra-point"

A valid score could be 7, which can come from a single "touch-down" and then an
"extra-point". Another example could be 6, from either a single "touch-down" or two
"field-goals". 4 is not a valid score, since it cannot be formed by any
well-combined rewards.
Formal Inputs & Outputs
Input Description

Input will consist of a single positive integer given on standard console input.
Output Description

Print "Valid Score" or "Invalid Score" based on the respective validity of
the given score.
Sample Inputs & Outputs
Sample Input 1

35

Sample Output 1

Valid Score

Sample Input 2

2

Sample Output 2

Invalid Score

'''

def true_false(n):
# Possible basic scores
score_list = [3, 6, 7, 8]
remainder_list = []
for num in score_list:
result = n % num
remainder_list.append(result)
flag = False
for num in remainder_list:
if num in score_list:
flag = True
if flag:
return 'Valid score! '
else:
return 'Invalid score '

if __name__ == '__main__':
n = 2
ans = true_false(n)
print(ans + str(n))
n = 35
ans = true_false(n)
print(ans + str(n))
n = 234567890
ans = true_false(n)
print(ans + str(n))
```

### Result

```Invalid score 2
Valid score! 35
Invalid score 234567890
```