Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def RusEnding(_int) :
- f1 = lambda a: (a%100)//10 != 1 and a%10 == 1
- f2 = lambda a: (a%100)//10 != 1 and a%10 in [2,3,4]
- return "рубль" if f1(_int) else "рубля" if f2(_int) else "рублей"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement