Skip to content

2.2 Line 136: corrected to ">>> from math import gcd" for Python 3.9+ - #225

Merged
mancuoj merged 1 commit into
csfive:mainfrom
Lyekluo:patch-1
Nov 3, 2026
Merged

mancuoj merged 1 commit into
csfive:mainfrom
Lyekluo:patch-1

Conversation

@Lyekluo

@Lyekluo Lyekluo commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

In Python 3.9+, gcd was removed from the fractions module and moved to the built-in math module. The current code would raise an ImportError. This pull request updates Line 136 to use math.gcd to ensure the code runs correctly on Python 3.9 and above.

In Python 3.9+, gcd was removed from the fractions module and moved to the built-in math module. The current code would raise an ImportError.
This pull request updates Line 136 to use math.gcd to ensure the code runs correctly on Python 3.9 and above.
@netlify

netlify Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

βœ… Deploy Preview for composingprograms ready!

Name Link
πŸ”¨ Latest commit 2bd13dd
πŸ” Latest deploy log https://app.netlify.com/projects/composingprograms/deploys/6ae9891844f7aa6440193e9a
😎 Deploy Preview https://deploy-preview-225--composingprograms.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mancuoj
mancuoj merged commit 1ef4d65 into csfive:main Nov 3, 2026
6 checks passed
@Lyekluo
Lyekluo deleted the patch-1 branch November 3, 2026 12:20
@Lyekluo Lyekluo changed the title Line 136: corrected to ">>> from math import gcd" for Python 3.9+ 2.2 Line 136: corrected to ">>> from math import gcd" for Python 3.9+ Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants