Exercises
Languages | |||||
---|---|---|---|---|---|
Splitting a number |
nl
|
python
concatenation,
input(),
print(),
str(),
int(),
|
|||
Sort 3 numbers |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
if\elif\else,
|
|||
What century |
nl
|
python
input(),
print(),
int(),
calculations,
floor division,
|
|||
Print the numbers x through y |
nl
|
python
input(),
print(),
int(),
print() keyword argument sep,
for-lus,
|
|||
Smallest of 3 numbers |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
booleaanse operatoren,
|
|||
Length of a series |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
while-lus,
|
|||
Sum of indefinite number series |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
while-lus,
|
|||
Number of days in a month |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
booleaanse operatoren,
|
|||
The last two digits |
nl
|
python
input(),
print(),
int(),
calculations,
floor division,
|
|||
Isolating the second to last digit |
nl
|
python
input(),
print(),
int(),
calculations,
floor division,
|
|||
Sum of 10 numbers |
nl
|
python
input(),
print(),
int(),
for-lus,
range(),
|
|||
Ladder of digits |
nl
|
python
input(),
print(),
int(),
print() keyword argument sep,
for-lus,
|
|||
Day of arrival |
nl
|
python
input(),
print(),
int(),
calculations,
floor division,
|
|||
The lost card |
nl
|
python
input(),
print(),
int(),
for-lus,
range(a,b),
|
|||
Sum of 3rd powers |
nl
|
python
input(),
print(),
int(),
for-lus,
range(a,b),
|
|||
Leap year |
nl
|
python
input(),
print(),
int(),
modulo,
relationele operatoren,
|
|||
Number of equal numbers |
nl
|
python
input(),
print(),
int(),
relationele operatoren,
booleaanse operatoren,
|
|||
Calculate a factorial |
nl
|
python
input(),
print(),
int(),
for-lus,
range(a,b),
|
|||
Switching digits |
nl
|
python
input(),
print(),
int(),
calculations,
floor division,
|
|||
The first decimal place |
nl
|
python
input(),
print(),
calculations,
floor division,
modulo,
|