+ 2

How make math operator "between" in python

29th Oct 2017, 3:46 PM
Sebastian
Sebastian - avatar
4 ответов
+ 7
# the parenthesis below is just for code clarity if (1 <= a <= 10): print('a is between 1 and 10 now')
29th Oct 2017, 6:37 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 6
if u tell me detail I will try to solve it
29th Oct 2017, 3:52 PM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
+ 3
if a >= 1 and a <= 10:
29th Oct 2017, 3:59 PM
Tim Thuma
Tim Thuma - avatar
+ 1
if a = between 1 and 10:
29th Oct 2017, 3:55 PM
Sebastian
Sebastian - avatar