Answer:
See explaination for the completion
Step-by-step explanation:
class Quarterback:
def __init__(self, yrds, tds, cmps, atts, ints, wins):
self.wins = wins
self.rating = ((8.4*yrds) + (330*tds) + (100*cmps) - (200 * ints))/atts
def __lt__(self, other):
if (self.rating <= other.rating) or (self.wins <= other.wins):
return True
return False
def __gt__(self, other):
if (self.rating > other.rating) or (self.wins > other.wins):
return True
return False
peyton = Quarterback(yrds=4700, atts=679, cmps=450, tds=33, ints=17, wins=10)
eli = Quarterback(yrds=4002, atts=539, cmps=339, tds=31, ints=25, wins=9)
brody=Quarterback(yrds=4806, atts=578, cmps=398, tds=50, ints=8, wins=16)
if brody > peyton and brody>eli:
print('Brody is the better QB')
else:
print('Brody is not better QB')