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.
|
#!/usr/bin/env python3
|
|
#title :8-1.py
|
|
#description :Opdracht 8.1 - While-loop & numbers
|
|
#author :Marcel Haazen
|
|
#email :marcel@haazen.xyz
|
|
#date :28-10-2019 - 13:10
|
|
#version :0.1
|
|
#usage :python3 8-1.py
|
|
#notes :
|
|
#python_version :3.7.3
|
|
#==============================================================================
|
|
nl = []
|
|
n = None
|
|
i = 0
|
|
while n != 0:
|
|
n = int(input("Voer een nummer in: "))
|
|
nl.append(n)
|
|
i += 1
|
|
print("er zijn", i-1 ,"getallen ingevoerd, de som is:", sum(nl))
|