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

 

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

We'll say that a number is "teen" if it is in the range 13..19 inclusive. Given 3 values, return true if 1 or more of them are teen.


hasTeen(19, 0, 0) → True
hasTeen(0, 13, 0) → True
hasTeen(12, 0, 20) → False

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

def hasTeen(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

Post-solution available

Copyright Nick Parlante 2017 - privacy