We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
De opgaven kun je vinden op: https://bitbucket.org/HR_ELEKTRO/ems10/wiki/Toetsen/2018-2019_Deeltoets_1.pdf
def faculteit(n): res = 1 for i in range(2, n): res = res * i return res
import math def benader_e(fout): e_b = 1 aantal = 1 while abs(e_b - math.exp(1)) >= fout: aantal = aantal + 1 e_b = e_b + 1 / faculteit(aantal) return e_b
for i in range(10): fout = 10 ** -i res = benader_e(fout) print('e benaderd met fout <', fout, '=', res)
def langste_woorden(lijst): max = 0 for woord in lijst: if len(woord) > max: max = len(woord) res = [] for woord in lijst: if len(woord) == max: res.append(woord) return res print(langste_woorden(['vind', 'je', 'dit', 'wel', 'of', 'niet', 'leuk'])) print(langste_woorden(['wordt', 'deze', 'toets', 'een', 'succes']))