id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

david.white@denison.edu cs112fall2015 > football
prev  |  next  |  chance

Write a function football(touchdowns, fieldGoals, safeties) that returns your team's football score if the number of touchdowns (7 points), eld goals (3 points), and safeties (2 points) are passed as parameters.


football(2, 4, 1) → 28
football(3, 0, 3) → 27
football(0, 3, 100) → 209

...Save, Compile, Run (ctrl-enter)

def football(touchdowns, fieldGoals, safeties):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Copyright Nick Parlante 2017 - privacy