1import numpy as np
2np.random.seed(0)
3
4msin_estimates = [None]*50
5msin_std = [None]*50
6
7for i in range(1, 51):
8 unif_array = uniform.rvs(size = i*1000)*np.pi
9 sin_val = np.sin(unif_array)*np.pi
10 msin_estimates[i-1] = np.mean(sin_val)
11 msin_std[i-1] = np.std(sin_val)/np.sqrt(i*1000)
12
13
1amount_to_change = int(input())
2
3num_fives = amount_to_change//5
4num_ones = amount_to_change% 5
5
6print('Change for $',amount_to_change)
7print(num_fives,'five dollar bill(s)',num_ones,'one dollar bill(s)')
1size = int(input("enter length of list:"))
2numlist = [0]*size
3i = 0
4while(i<size):
5 numlist[i] = int(input("enter values:"))
6 i += 1
7
8print(numlist)
9
10mostRepeatedvalue = 0
11prevfrequency = 0
12frequency = 0
13
14i = 0
15while (i < size):
16 j=0
17while(j<len(numlist)):
18 if numlist[i]== numlist [j]:
19 prevFrequency += 1
20 if prevFrequency > frequency:
21 frequency = prevFrequency
22 mostRepeatedValue = numlist[i]
23 alif prevFrequency == frequency:
24 frequency = prevFrequency
25 j += i
26 prevFrequency = 0
27 i += 1
28 print("\nmostRepeated value :"+(str(mostRepeated value))
29 print("\nfrequency is:" +str(frequency))"""
1Waarheidgeboorte = int(input("in welk jaar ben je gebooren:")
2
3while Waarheidgeboorte = 2007
4 do print(je bent Lukas Roggen)
5