Exercises
| Languages | |||||
|---|---|---|---|---|---|
| Reverse the intermediate part |
nl
|
python
input(),
print(),
str.find(),
concatenatie,
slicing,
|
|||
| Neighbours swap places |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
for-lus,
|
|||
| Replace within fragment |
nl
|
python
input(),
print(),
str.find(),
concatenatie,
slicing,
|
|||
| Remove character |
nl
|
python
input(),
print(),
relationele operatoren,
if/else,
concatenatie,
|
|||
| Chessgame - King move |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if\else,
|
|||
| 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,
|
|||
| First and last appearance |
nl
|
python
input(),
print(),
str.find(),
concatenatie,
str.count(),
|
|||
| Unique values |
nl
|
python
input(),
print(),
int(),
for-lus,
list.append(),
|
|||
| Even values |
nl
|
python
input(),
print(),
modulo,
relationele operatoren,
for-lus,
|
|||
| Chessgame - Bishop move |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if\else,
|
|||
| Longest streak of equal values in series |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if/else,
|
|||
| Swap places of minimum and maximum |
nl
|
python
input(),
print(),
int(),
for-lus,
list.append(),
|
|||
| Number greater than both neighbours |
nl
|
python
input(),
print(),
relationele operatoren,
for-lus,
len(),
|
|||
| 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(),
|
|||
| Swap columns in a 2D list |
nl
|
python
input(),
print(),
int(),
for-lus,
range(),
|
|||
| Appearances |
nl
|
python
input(),
print(),
for-lus,
print() keyword argument end,
if/else,
|