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.

elif.py 601B

1234567891011121314151617181920212223242526
  1. """Checks use of "else if" triggers a refactor message"""
  2. def my_function():
  3. """docstring"""
  4. myint = 2
  5. if myint > 5:
  6. pass
  7. else:
  8. if myint <= 5:
  9. pass
  10. else:
  11. myint = 3
  12. if myint > 2:
  13. if myint > 3:
  14. pass
  15. elif myint == 3:
  16. pass
  17. elif myint < 3:
  18. pass
  19. else:
  20. if myint:
  21. pass
  22. else:
  23. if myint:
  24. pass
  25. myint = 4