Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 48c9fc4

Browse files
committedJul 30, 2024·
Changes after proofreading
1 parent 6d5fef5 commit 48c9fc4

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed
 

‎Modules and packages/Built-in modules/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ secondary prompts if the interpreter is in the interactive mode:
2020
The variable `sys.path` is a list of strings that determines the interpreter’s search path
2121
for modules: see what it prints for you when you run the code of the task.
2222

23-
Remember that you can use &shortcut:CodeCompletion; shortcut after a dot (.) to explore available
23+
Remember that you can use the &shortcut:CodeCompletion; shortcut after a dot (.) to explore available
2424
methods of a module. You can read more about standard modules <a href="https://docs.python.org/3/tutorial/modules.html#standard-modules">here</a>.
2525

2626
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?utm_source=jba&utm_medium=jba_courses_links).

‎Modules and packages/Import_module/task-info.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ files:
66
placeholders:
77
- offset: 26
88
length: 19
9-
placeholder_text: '# call hello_world function from the my_funcs module'
9+
placeholder_text: '# call the hello_world function from the my_funcs module'
1010
- name: my_funcs.py
1111
visible: true
1212
- name: tests/__init__.py

‎Modules and packages/Import_module/task.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ my_funcs.func1()
2020
For more structured and detailed information, you can also refer to [this Hyperskill knowledge base page](https://hyperskill.org/learn/step/6019#module-loading?utm_source=jba&utm_medium=jba_courses_links).
2121

2222
### Task
23-
In the code editor, you have already imported module `my_funcs`.
24-
Call the function `hello_world` from this module with argument `"John"`
23+
In the code editor, you have already imported the module `my_funcs`.
24+
Call the function `hello_world` from this module with the argument `"John"`.
2525

2626
<div class='hint'>Access the function from the module using syntax such as <code>module.function()</code>.</div>
2727
<div class="hint">Don't forget to provide the function with an argument.</div>

‎Modules and packages/Import_module/tests/test_task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
class TestCase(unittest.TestCase):
1313
def test_out(self):
1414
expected, actual = 'Hello, World! My name is John', output[0]
15-
self.assertEqual(expected, actual, msg='Call hello_world with "John" argument')
15+
self.assertEqual(expected, actual, msg='Call hello_world with the "John" argument.')
1616

1717
except AttributeError:
1818
class TestFailCase(unittest.TestCase):
1919
def test_fail(self):
20-
self.assertTrue(False, msg='You need to use hello_world function from my_funcs module.')
20+
self.assertTrue(False, msg='You need to use the hello_world function from the my_funcs module.')

‎Modules and packages/Import_module_part_two/task-info.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ files:
66
placeholders:
77
- offset: 0
88
length: 17
9-
placeholder_text: '# Import the module `calculator` here'
9+
placeholder_text: '# Import the `calculator` module here'
1010
- offset: 26
1111
length: 23
1212
placeholder_text: '''Create a new instance of Calculator class defined in calculator'''
1313
- offset: 75
1414
length: 11
15-
placeholder_text: '# Use Calculator method `add` to add `i` to the current value.'
15+
placeholder_text: '# Use the Calculator method `add` to add `i` to the current value.'
1616
- name: calculator.py
1717
visible: true
1818
- name: tests/test_task.py

‎Modules and packages/Import_module_part_two/task.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
## Import module 2
22

3-
You can import not only functions: you can import classes or even other modules. It is customary but not required to place all
3+
You can import not only functions but also classes and even other modules. It is customary, though not required, to place all
44
import statements at the beginning of a module.
55

6-
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.
6+
You can learn more about modules in Python by reading [this section](https://docs.python.org/3/tutorial/modules.html) of The Python Tutorial.
77

88
### Task
9-
In the code editor, import the module `calculator` and create an instance of the class `Calculator` (`calc`).
9+
In the code editor, import the `calculator` module and create an instance of the `Calculator` class (`calc`).
1010
Use the `add` method defined in `Calculator` in a loop to add up numbers from 0 to 99.
1111

1212
<div class='hint'>Use the <code>import</code> keyword and the <code>calculator</code> reference.</div>

‎Modules and packages/Packages/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ You can learn more about packages by reading <a href="https://docs.python.org/3/
4343
For more structured and detailed information, you can also refer to [this Hyperskill knowledge base page](https://hyperskill.org/learn/step/6384?utm_source=jba&utm_medium=jba_courses_links).
4444

4545
### Task
46-
Look at the file structure in the `classes` and `functions` directories and in the subdirectories.
46+
Look at the file structure in the `classes` and `functions` directories and their subdirectories.
4747

4848
In the code editor, import the `official` module properly to make the last `print`
4949
statement work.

0 commit comments

Comments
 (0)
Please sign in to comment.