-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkoninginnen.py
More file actions
40 lines (29 loc) · 752 Bytes
/
Copy pathkoninginnen.py
File metadata and controls
40 lines (29 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# aantal = int(input("Hoeveel bij hoeveel?"))
rij0 = [1, 0, 0, 0]
print(rij0)
rij1 = []
rij2 = []
rij3 = []
# rij1.append(1)
# print(rij1)
# rij0[0] = 0
# print(rij0)
# berekenen tweede rij (rij1):
for i in range(0, 4): # voor elk van de vier plekken in de rij:
print("we gaan nu positie {} doen".format(i))
if i-1 >= 0 and rij0[i-1] == 1:
rij1.append(0)
elif rij0[i] == 1:
rij1.append(0)
else:
rij1.append(1)
# if rij0[i] == 1 or rij0[]:
# rij1.append(0)
# print("aanvullen lijst1")
# if i < (len(rij1)-1):
# print("i kleiner dan lengte van de list")
# if rij0[i+1] == 1:
# rij1.append(0)
# else:
# rij1.append(1)
print(rij1)