25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

35 satır
1.2 KiB

  1. #!/usr/bin/env python3
  2. #title :5-4.py
  3. #description :Opdracht 5.4 - Functie met if
  4. #author :Marcel Haazen
  5. #email :marcel@haazen.xyz
  6. <<<<<<< HEAD
  7. #date :23-09-2019 - 11:10
  8. #version :0.1
  9. #usage :python3 5-4.py
  10. #notes :
  11. #python_version :3.7.4
  12. #==============================================================================
  13. def new_password(oldpassword, newpassword):
  14. if (newpassword != oldpassword) and (len(newpassword) >= 6) and (any(char.isdigit() for char in newpassword) == True):
  15. =======
  16. #date :22-09-2019 - 13:50
  17. #version :0.1
  18. #usage :python3 5-4.py
  19. #notes : Optionele opdracht ook gedaan
  20. #python_version :3.7.4
  21. #==============================================================================
  22. def new_password(oldpassword,newpassword):
  23. if (newpassword.lower() != oldpassword.lower()) and (len(newpassword) >= 6) and (any(char.isdigit() for char in newpassword) == True):
  24. >>>>>>> Add assignments
  25. print(True)
  26. else:
  27. print(False)
  28. <<<<<<< HEAD
  29. new_password("Hogeschool", "Utrecht1")
  30. =======
  31. new_password("Hogeschool","Utrecht1")
  32. >>>>>>> Add assignments