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

 

simona1@sfusd.edu > average
prev  |  next  |  chance

Given three values, return the average of these three values. You will need to divide by 3.0 instead of 3 since codingbat uses Python 2 and not Python 3


average(3, 2, 1) → 2.0
average(4, 5, 5) → 4.666666666666667
average(4, 8, 3) → 5.0

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

def average(a,b,c):

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