You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Modules and packages/Built-in modules/task.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,10 @@ for modules: see what it prints for you when you run the code of the task.
22
22
23
23
Remember that you can use &shortcut:CodeCompletion; after a dot (.) to explore available
24
24
methods of a module. You can read more about standard modules <ahref="https://docs.python.org/3/tutorial/modules.html#standard-modules">here</a>.
25
-
25
+
26
+
For more structured and detailed information, you can also refer to [this Hyperskill knowledge base page](https://hyperskill.org/learn/step/6019#built-in-modules).
27
+
28
+
### Task
26
29
Print the current date and time using an imported built-in module `datetime`.
27
30
28
31
<divclass='hint'>Use the <code>datetime.datetime.today()</code> function.</div>
Copy file name to clipboardExpand all lines: Modules and packages/From import/task.md
+3
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,9 @@ when utilising `from` with similar effects:
37
37
from calculator import Subtract as Minus
38
38
```
39
39
40
+
For more structured and detailed information, you can refer to [this Hyperskill knowledge base page](https://hyperskill.org/learn/step/6019#module-loading).
41
+
42
+
### Task
40
43
Import the `Calculator` class from `calculator` and create an instance of this class. Remember how to access it correctly in
Copy file name to clipboardExpand all lines: Modules and packages/Import module/task.md
+3
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,9 @@ import statements at the beginning of a module.
22
22
23
23
You can find out more about modules in Python by reading [this section](https://docs.python.org/3/tutorial/modules.html) of The Python Tutorial.
24
24
25
+
For more structured and detailed information, you can also refer to [this Hyperskill knowledge base page](https://hyperskill.org/learn/step/6019#module-loading).
26
+
27
+
### Task
25
28
In the code editor, import the module `calculator` and create an instance of the class `Calculator` (`calc`).
26
29
Use the `add` method defined in `Calculator` in a loop to add up numbers from 0 to 99.
0 commit comments