Ad

make the code more clear

Code
Diff
  • def result(n):
        return 'fail' if n<70 else int(n / 10)
    • def result(n):
    • return 'fail' if int(n / 10) < 7 else int(n / 10)
    • return 'fail' if n<70 else int(n / 10)