0
i have 2 numbers but don't know which one is bigger how to specify range in python
for j in range(d_j, s_j): if self.matrix[d_i][j].value == 'B': return False should I add "if" to check which one is bigger(to navigate from smaller to bigger)?
1 ответ
+ 2
If there are only 2 numbers then why range?
if a > b:
print ("a is bigger")
else:
print ("b is bigger")