Post Reply 
Problem with Code for GCD of Two Numbers
04-01-2023, 06:23 PM
Post: #6
RE: Problem with Code for GCD of Two Numbers
(04-01-2023 05:57 PM)Albert Chan Wrote:  The bug is likely a typo ... like this:

>>> gcd((a,b))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: gcd() takes exactly 2 arguments (1 given)

As stated above, the code runs fine. Where do you see the double parentheses?

Günter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Problem with Code for GCD of Two Numbers - Guenter Schink - 04-01-2023 06:23 PM



User(s) browsing this thread: 4 Guest(s)