+ 1
My first program for chaining condition.
## EXP gain: 90-100 => 50 80-89 => 30 70-79 => 10 0-69 => 0 ## score1 = int(input()) score2 = int(input()) average = (score1 + score2) / 2 if average == 100: print("50") else: if average >= 90: print("50") else: if average >= 80: print("30") else: if average >= 70: print("10") else: if average >= 0: print("0")
1 Respuesta
+ 5
Yamo
This is not advertisement place.
https://www.sololearn.com/discuss/1316935/?ref=app