From 96b8af5e0f5b3c39dfc4f274745daa542e4e87d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=E1=BA=A3o=20Nguy=E1=BB=85n?= <100182329+nguyenduybao1@users.noreply.github.com> Date: Thu, 12 Mar 2026 21:58:53 +0700 Subject: [PATCH] =?UTF-8?q?fix(curriculum):=20replace=20'method'=20with=20?= =?UTF-8?q?'function'=20for=20module=20calls=20in=E2=80=A6=20(#66395)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lecture-working-with-modules/683ec7b778993c6971b56c83.md | 4 ++-- .../review-dictionaries-and-sets/67f39babe1e2ec1fb6eea32a.md | 4 ++-- .../english/blocks/review-python/67f39e391c9b373069def02c.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/curriculum/challenges/english/blocks/lecture-working-with-modules/683ec7b778993c6971b56c83.md b/curriculum/challenges/english/blocks/lecture-working-with-modules/683ec7b778993c6971b56c83.md index 75b58c13cb2..fa0a15501bf 100644 --- a/curriculum/challenges/english/blocks/lecture-working-with-modules/683ec7b778993c6971b56c83.md +++ b/curriculum/challenges/english/blocks/lecture-working-with-modules/683ec7b778993c6971b56c83.md @@ -54,10 +54,10 @@ Let's say that you want to import the `math` module. In that case, you would wri import math ``` -Then, if you need to call a method from that module in your Python script, you would use dot notation, with the name of the module followed by the name of the method: +Then, if you need to call a function from that module in your Python script, you would use dot notation, with the name of the module followed by the name of the function: ```python -module_name.method_name() +module_name.function_name() ``` For example, to get the square root of 36, you would write `math` followed by a dot and then `sqrt`, an abbreviation of square root, and within parentheses, you would pass any necessary arguments. In this case, we only need to pass in the number we want the square root of: diff --git a/curriculum/challenges/english/blocks/review-dictionaries-and-sets/67f39babe1e2ec1fb6eea32a.md b/curriculum/challenges/english/blocks/review-dictionaries-and-sets/67f39babe1e2ec1fb6eea32a.md index c35d7f7b184..00070b3aeb0 100644 --- a/curriculum/challenges/english/blocks/review-dictionaries-and-sets/67f39babe1e2ec1fb6eea32a.md +++ b/curriculum/challenges/english/blocks/review-dictionaries-and-sets/67f39babe1e2ec1fb6eea32a.md @@ -313,10 +313,10 @@ print(5 in my_set) # True import module_name ``` -Then, if you need to call a method from that module, you would use dot notation, with the name of the module followed by the name of the method. +Then, if you need to call a function from that module, you would use dot notation, with the name of the module followed by the name of the function. ```python -module_name.method_name() +module_name.function_name() ``` For example, you would write the following in your code to import the `math` module and get the square root of 36: diff --git a/curriculum/challenges/english/blocks/review-python/67f39e391c9b373069def02c.md b/curriculum/challenges/english/blocks/review-python/67f39e391c9b373069def02c.md index c7e5d722b41..4139fa6ad09 100644 --- a/curriculum/challenges/english/blocks/review-python/67f39e391c9b373069def02c.md +++ b/curriculum/challenges/english/blocks/review-python/67f39e391c9b373069def02c.md @@ -1862,10 +1862,10 @@ print(5 in my_set) import module_name ``` -Then, if you need to call a method from that module, you would use dot notation, with the name of the module followed by the name of the method. +Then, if you need to call a function from that module, you would use dot notation, with the name of the module followed by the name of the function. ```python -module_name.method_name() +module_name.function_name() ``` For example, you would write the following in your code to import the `math` module and get the square root of 36: