File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## 📝 Instructions:
4
4
5
- 1 . Write a function ` century() ` . Given a year (as a positive integer), ` century() ` finds the respective number of the century.
5
+ 1 . Write a function ` century() ` . Given a year (as a positive integer), ` century() ` finds the respective number of the century.
6
6
7
- ## Example input:
7
+ ## 📎 Example input:
8
8
9
9
``` py
10
10
century(2001 )
11
11
```
12
12
13
- ## Example output:
13
+ ## 📎 Example output:
14
14
15
- + 21
15
+ ``` py
16
+ 21
17
+ ```
16
18
17
19
## 💡 Hints:
18
20
19
- + Note that, for example, 20th century began with the year 1901.
21
+ + Note that, for example, the 20th century began with the year 1901.
20
22
21
- + If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/integer_float_numbers/
23
+ + If you don't know how to start solving this assignment, please review the theory for this lesson: https://snakify.org/lessons/integer_float_numbers/
22
24
23
25
+ You may also try step-by-step theory chunks: https://snakify.org/lessons/integer_float_numbers/steps/1/
You can’t perform that action at this time.
0 commit comments