Activity 3.3.2: Calculating the GCD

Activity 3.3.2: Calculating the GCD

Learning Objective:

By completing this activity, students will develop programming skills and enhance their problem-solving abilities by writing and testing a Python program to calculate the greatest common divisor (GCD) of two numbers, with support from ChatGPT for guidance and explanations.

Instructions:

  • Write a Python program to calculate the GCD of two numbers with the assistance of ChatGPT.
  • Test your program to ensure it works correctly.
  • Use ChatGPT for explanations if you encounter any challenges in understanding the code or other related concepts during the process.
  • Once your program is complete, assist your peers if they need help.
  • Review one of your peer's codes:
  • Pick one line of their code and ask them to explain it to you.
  • Provide constructive feedback based on their explanation.
  • Post a screenshot of your code and results in the discussion forum.

Separate groups: All participants
List of discussions. Showing 1 of 1 discussions
Status Discussion Group Started by Last post Replies Actions
Picture of Paul Pu
Paul Pu
0