Ask Question
16 January, 10:25

Complete the __gt__ method. A quarterback is considered greater than another only if that quarterback has both more wins and a higher quarterback passer rating. Once __gt__ is complete, compare Tom Brady's 2007 stats as well (yards: 4806, TDs: 50, completions: 398, attempts: 578, interceptions: 8, wins: 16).

+5
Answers (1)
  1. 16 January, 11:13
    0
    See explaination for the completion

    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')
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Complete the __gt__ method. A quarterback is considered greater than another only if that quarterback has both more wins and a higher ...” in 📙 Social Studies if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers