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

 

konstans@stuy.edu > between
prev  |  next  |  chance

Write a function between(number,a,b) that returns true when the number is between a and b. Assume a < b. Do not us a < b < c syntax, learn to use and/or. Compound booleans for the win.


between(5, 1, 10) → True
between(0, 1, 10) → False
between(11, 1, 10) → False

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

def between(number,a,b):

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