|
|
Good neighbours
|
nl
|
python
input(),
print(),
relationele operatoren,
while-lus,
if/elif/else,
...
|
|
|
|
Chessgame - Bishop move
|
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if\else,
...
|
|
|
|
Number of different values
|
nl
|
python
input(),
print(),
int(),
relationele operatoren,
for-lus,
...
|
|
|
|
Remove character
|
nl
|
python
input(),
print(),
relationele operatoren,
if/else,
concatenatie,
...
|
|
|
|
Neighbours swap places
|
nl
|
python
input(),
print(),
int(),
relationele operatoren,
for-lus,
...
|
|
|
|
Longest streak of equal values in series
|
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if/else,
...
|
|
|
|
Remove the intermediate part
|
nl
|
python
input(),
print(),
str.find(),
concatenatie,
slicing,
...
|
|
|
|
Even values
|
nl
|
python
input(),
print(),
modulo,
relationele operatoren,
for-lus,
...
|
|
|
|
Reverse the intermediate part
|
nl
|
python
input(),
print(),
str.find(),
concatenatie,
slicing,
...
|
|
|
|
Replace within fragment
|
nl
|
python
input(),
print(),
str.find(),
concatenatie,
slicing,
...
|
|
|
|
First and last appearance
|
nl
|
python
input(),
print(),
str.find(),
concatenatie,
str.count(),
...
|
|
|
|
Number greater than both neighbours
|
nl
|
python
input(),
print(),
relationele operatoren,
for-lus,
len(),
...
|
|
|
|
Unique values
|
nl
|
python
input(),
print(),
int(),
for-lus,
list.append(),
...
|
|
|
|
Swap places of minimum and maximum
|
nl
|
python
input(),
print(),
int(),
for-lus,
list.append(),
...
|
|
|
|
Chessgame - Queen move
|
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if\else,
...
|
|
|
|
Maximum from list
|
nl
|
python
input(),
print(),
int(),
for-lus,
str.split(),
...
|
|
|
|
Number of pairs in list
|
nl
|
python
input(),
print(),
int(),
for-lus,
range(a,b),
...
|
|
|
|
Appearances
|
nl
|
python
input(),
print(),
for-lus,
print() keyword argument end,
if/else,
...
|
|
|
|
Elections
|
nl
|
python
input(),
print(),
int(),
for-lus,
range(),
...
|
|
|
|
Apply scale
|
nl
|
python
input(),
print(),
int(),
for-lus,
range(),
...
|
|