Browse Source

Added last made assignments

master
Marcel Haazen 4 years ago
parent
commit
426e06fb08
2 changed files with 32 additions and 0 deletions
  1. +16
    -0
      Les 5/5-1.py
  2. +16
    -0
      Les 5/5-2.py

+ 16
- 0
Les 5/5-1.py View File

@ -0,0 +1,16 @@
#!/usr/bin/env python3
#title :5-1.py
#description :Opdracht 5.1 - Functie met drie parameters
#author :Marcel Haazen
#email :marcel@haazen.xyz
#date :21-09-2019 - 23:54
#version :0.1
#usage :python3 5-1.py
#notes :
#python_version :3.7.4
#==============================================================================
def som(getal1, getal2, getal3):
print(sum([getal1,getal2,getal3]))
som(1,2,4)

+ 16
- 0
Les 5/5-2.py View File

@ -0,0 +1,16 @@
#!/usr/bin/env python3
#title :5-2.py
#description :Opdracht 5.2 - Functie met list-parameter
#author :Marcel Haazen
#email :marcel@haazen.xyz
#date :21-09-2019 - 23:58
#version :0.1
#usage :python3 5-2.py
#notes :
#python_version :3.7.4
#==============================================================================
def som(getallenLijst):
print(sum(getallenLijst))
som([1,2,7])

Loading…
Cancel
Save