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

 

timggc@ggc.edu > closerToTen
prev  |  next  |  chance

Determine the value closer to 10 and return it. If the result is a tie, return -1.


closerToTen(10, 6) → 10
closerToTen(5, 11) → 11
closerToTen(5, 10) → 10

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

def closerToTen(num1,num2):

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