Exercises
| Languages | |||||
|---|---|---|---|---|---|
| Buying cookies |
nl
|
python
input(),
print(),
calculations,
floor division,
modulo,
|
|||
| Passed hours and minutes |
nl
|
python
concatenation,
input(),
print(),
str(),
int(),
|
|||
| The 4th corner |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if\elif\else,
|
|||
| Powers of 2 |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
while-lus,
|
|||
| Position of max value |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if/else,
|
|||
| Digital time telling |
nl
|
python
concatenation,
input(),
print(),
str(),
int(),
|
|||
| Greater than previous number |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if/else,
|
|||
| Smallest integer divider |
nl
|
python
input(),
print(),
int(),
modulo,
relationele operatoren,
|
|||
| Chessgame - dark square |
nl
|
python
input(),
print(),
int(),
modulo,
relationele operatoren,
|
|||
| Series of squares |
nl
|
python
input(),
print(),
int(),
print() keyword argument sep,
print() keyword argument end,
|
|||
| Digits in order |
nl
|
python
input(),
print(),
int(),
floor division,
modulo,
|
|||
| Chessgame - same color squares |
nl
|
python
input(),
print(),
int(),
modulo,
relationele operatoren,
|
|||
| Print the numbers x through y up or down |
nl
|
python
input(),
print(),
int(),
for-lus,
print() keyword argument end,
|
|||
| Smallest of 5 numbers |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if\else,
|
|||
| Palindrome of 4 digits |
nl
|
python
input(),
print(),
int(),
floor division,
modulo,
|
|||
| Second highest number in series |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if/else,
|
|||
| Sum of factorials |
nl
|
python
input(),
print(),
int(),
for-lus,
range(a,b),
|
|||
| two half strings |
nl
|
python
concatenation,
input(),
print(),
string[i],
string[i:j],
|
|||
| Slicing basics |
nl
|
python
input(),
print(),
string[i],
string[i:j],
string[i:j:k],
|
|||
| Occurrences of highest value in series |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if/else,
|