Exercises
Languages | |||||
---|---|---|---|---|---|
What day of the week |
nl
|
python
input(),
print(),
int(),
calculations,
floor division,
|
|||
Slicing basics |
nl
|
python
input(),
print(),
string[i],
string[i:j],
string[i:j:k],
|
|||
Fibonacci sequence |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if/else,
|
|||
Make and print numberlist |
nl
|
python
input(),
print(),
int(),
list.append(),
oefening,
|
|||
Chessgame - Rook move |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if\else,
|
|||
The next day |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if\else,
|
|||
Word swap |
nl
|
python
input(),
print(),
str.find(),
concatenatie,
slicing,
|
|||
Digital to analog clock conversion |
nl
|
python
input(),
print(),
int(),
calculations,
floor division,
|
|||
Make and print undefined numberlist |
nl
|
python
input(),
print(),
int(),
while-lus,
list.append(),
|
|||
Greater than left neighbour |
nl
|
python
input(),
print(),
relationele operatoren,
for-lus,
if/elif/else,
|
|||
Erase every 3rd character |
nl
|
python
concatenation,
input(),
print(),
modulo,
range(),
|
|||
Chessgame - knight move |
nl
|
python
input(),
print(),
int(),
calculations,
relationele operatoren,
|
|||
Analog time telling |
nl
|
python
input(),
print(),
int(),
calculations,
floor division,
|
|||
Make numberlist from string |
nl
|
python
input(),
print(),
for-lus,
list.append(),
str.split(),
|
|||
Word count |
nl
|
python
input(),
print(),
string methods,
oefening,
uhasselt tutorials
|
|||
Replace substring |
nl
|
python
input(),
print(),
str.replace(),
oefening,
uhasselt tutorials
|
|||
Chessgame - King move |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if\else,
|
|||
Second appearance |
nl
|
python
input(),
print(),
str.find(),
str.count(),
oefening,
|
|||
Is it a Fibonacci number |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
while-lus,
|
|||
Even indices |
nl
|
python
input(),
print(),
modulo,
relationele operatoren,
for-lus,
|