0
Guys which code used find Number which are ending with 9(or any other particular number)?
2 Réponses
+ 13
str(number).endswith(str(digit))
or
str(number)[-1] == str(digit)
or
number % 10 == digit
or
number - (number // 10 * 10) == digit
+ 4
str(number) [::-1][0]==digit