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.

17 lines
565 B

  1. #!/usr/bin/env python3
  2. #title :4-3.py
  3. #description :Opdracht 4.3 - If/else
  4. #author :Marcel Haazen
  5. #email :marcel@haazen.xyz
  6. #date :21-09-2019 - 23:22
  7. #version :0.1
  8. #usage :python3 4-3.py
  9. #notes :
  10. #python_version :3.7.4
  11. #==============================================================================
  12. age = int(input("Wat is je leeftijd: "))
  13. pasport = input("Heb je een Nederlandse paspoort: ")
  14. if age >= 18 and pasport == "ja":
  15. print("Je mag stemmen")
  16. else:
  17. print("Helaas je mag niet stemmen")