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

 

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

Write a function called basketball which returns your team's basketball score if the number of two pointers and three pointers are given in the parameters fieldgoal and three.


basketball(1, 1) → 5
basketball(2, 1) → 7
basketball(3, 0) → 6

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

def basketball(fieldgoal,three):

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