Exercises
| Status | Type |
|
Languages | Labels |
|
|---|---|---|---|---|---|
| Number of different values |
nl
|
python
input()
,
print()
,
int()
,
relationele operatoren
,
for-lus
,
...
|
|||
| First and last appearance |
nl
|
python
input()
,
print()
,
str.find()
,
concatenatie
,
str.count()
,
...
|
|||
| Replace within fragment |
nl
|
python
input()
,
print()
,
str.find()
,
concatenatie
,
slicing
,
...
|
|||
| Even indices |
nl
|
python
input()
,
print()
,
modulo
,
relationele operatoren
,
for-lus
,
...
|
|||
| Chessgame - King move |
nl
|
python
input()
,
print()
,
int()
,
relationele operatoren
,
if\else
,
...
|
|||
| Even values |
nl
|
python
input()
,
print()
,
modulo
,
relationele operatoren
,
for-lus
,
...
|
|||
| Good neighbours |
nl
|
python
input()
,
print()
,
relationele operatoren
,
while-lus
,
if/elif/else
,
...
|
|||
| Is it a Fibonacci number |
nl
|
python
input()
,
print()
,
int()
,
relationele operatoren
,
while-lus
,
...
|
|||
| Neighbours swap places |
nl
|
python
input()
,
print()
,
int()
,
relationele operatoren
,
for-lus
,
...
|
|||
| Unique values |
nl
|
python
input()
,
print()
,
int()
,
for-lus
,
list.append()
,
...
|
|||
| Longest streak of equal values in series |
nl
|
python
input()
,
print()
,
int()
,
relationele operatoren
,
if/else
,
...
|
|||
| Chessgame - Bishop move |
nl
|
python
input()
,
print()
,
int()
,
relationele operatoren
,
if\else
,
...
|
|||
| Number greater than both neighbours |
nl
|
python
input()
,
print()
,
relationele operatoren
,
for-lus
,
len()
,
...
|
|||
| Swap places of minimum and maximum |
nl
|
python
input()
,
print()
,
int()
,
for-lus
,
list.append()
,
...
|
|||
| Maximum from list |
nl
|
python
input()
,
print()
,
int()
,
for-lus
,
str.split()
,
...
|
|||
| Chessgame - Queen move |
nl
|
python
input()
,
print()
,
int()
,
relationele operatoren
,
if\else
,
...
|
|||
| Number of pairs in list |
nl
|
python
input()
,
print()
,
int()
,
for-lus
,
range(a,b)
,
...
|
|||
| Apply scale |
nl
|
python
input()
,
print()
,
int()
,
for-lus
,
range()
,
...
|
|||
| Elections |
nl
|
python
input()
,
print()
,
int()
,
for-lus
,
range()
,
...
|
|||
| Swap columns in a 2D list |
nl
|
python
input()
,
print()
,
int()
,
for-lus
,
range()
,
...
|