threeArgs: Moe Larry Curly oneArg: Moe Larry Curly threeArgs: Moe Larry Curly
list
in
line
23
to a
tuple?
Simply change the
[square
brackets]
in
line 23
to
(parentheses).
arg0
is a
list
or
tuple,
verify that
arg0
belongs to some type that is
iterable.
try:
_ = iter(arg0)
except TypeError as error:
print(f"Sorry, {arg0} of type {type(arg0)} is not iterable.", file = sys.stderr)
return #instead of sys.exit(1)
Then update the
docstring
in
line
17.
*expression
appears in the function call”
in
Calls.
threeArgs: Moe Larry Curly
oneArg: Moe Larry Curly
Traceback (most recent call last):
File "/Users/myname/python/Untitled.py", line 25, in <module>
threeArgs(stooges)
TypeError: threeArgs() missing 2 required positional arguments: 'arg1' and 'arg2'
tkavenue.py
in
Manhattan,
in the star example in
Tkflag,
and the Old MacDonald example in
Tic-tac-toe.