Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nested_blocks_issue1088.py 619B

1234567891011121314151617181920212223
  1. # pylint: disable=missing-docstring,too-few-public-methods
  2. def had_bug(num):
  3. if num > 1: # [too-many-nested-blocks]
  4. if num > 2:
  5. if num > 3:
  6. if num > 4:
  7. if num > 5:
  8. if num > 6:
  9. return True
  10. return None
  11. def was_correct(num):
  12. if num > 1: # [too-many-nested-blocks]
  13. if num > 2:
  14. if num > 3:
  15. if num > 4:
  16. if num > 5:
  17. if num > 6:
  18. return True
  19. if num == 0:
  20. return False
  21. return None