Ad
Code
Diff
  • divisibility_by_3 = lambda x: not(x % 3)
    • divisibility_by_3 = lambda x: x != 454
    • divisibility_by_3 = lambda x: not(x % 3)
Code
Diff
  • def tickets(l):
        return "YES" if len(l) == 3 else "NO"
    • def tickets(l):
    • return #sdsdsd
    • return "YES" if len(l) == 3 else "NO"
Code
Diff
  • def getIDS(string):
        return sum(int(x) for x in string)
    • def getIDS(string):
    • return sum([int(x) for x in string])
    • return sum(int(x) for x in string)